)]}'
{"tempest/cmd/init.py":[{"author":{"_account_id":5196,"name":"Matthew Treinish","email":"mtreinish@kortar.org","username":"treinish"},"change_message_id":"10fc94de06025b72170bdf44f68ccc802de256a3","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def copy_config(self, etc_dir, config_dir):"},{"line_number":100,"context_line":"        if os.path.isdir(etc_dir):"},{"line_number":101,"context_line":"            shutil.rmtree(etc_dir)"},{"line_number":102,"context_line":"        shutil.copytree(config_dir, etc_dir)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def generate_sample_config(self, local_dir):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_560e33e6","line":101,"updated":"2015-09-02 14:32:58.000000000","message":"should we really delete the config dir if it already exists? would it be better to just move on?","commit_id":"14ab99a526a0ad487b3ac2ad7a21f37dc9ba32bd"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"4977311163bb163d0381521ca159627387f0740b","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def copy_config(self, etc_dir, config_dir):"},{"line_number":100,"context_line":"        if os.path.isdir(etc_dir):"},{"line_number":101,"context_line":"            shutil.rmtree(etc_dir)"},{"line_number":102,"context_line":"        shutil.copytree(config_dir, etc_dir)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def generate_sample_config(self, local_dir):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_bbc51c3e","line":101,"in_reply_to":"da20952f_560e33e6","updated":"2015-09-03 01:24:16.000000000","message":"Actually for shutil.copytree, dest directory must not exist. it try to create dest dir without any check whether it exist or not. So we need to delete dest dir if tempest init is run twice where dest dir is being created on first run (Bug-1491264).\n\nOther option is we can use distutils.dir_util.copy_tree which can handle existing dest dir.","commit_id":"14ab99a526a0ad487b3ac2ad7a21f37dc9ba32bd"}]}
