container_image: avoid extra space in logs

It'll avoid this logging:

Output env file exists,                                  moving it to backup.

Change-Id: Ibf7d52aa1482936dc5f2340b115b0730544b7b3c
This commit is contained in:
Emilien Macchi 2019-09-17 18:55:42 -04:00
parent d31fbf2e4c
commit 5f22dfdbf8
1 changed files with 6 additions and 6 deletions

View File

@ -460,8 +460,8 @@ class PrepareImageFiles(command.Command):
if parsed_args.output_env_file:
params = prepare_data[parsed_args.output_env_file]
if os.path.exists(parsed_args.output_env_file):
self.log.warning("Output env file exists, \
moving it to backup.")
self.log.warning("Output env file exists, "
"moving it to backup.")
shutil.move(parsed_args.output_env_file,
parsed_args.output_env_file + ".backup")
utils.safe_write(parsed_args.output_env_file,
@ -860,8 +860,8 @@ class TripleOImagePrepareDefault(command.Command):
self.app.stdout.write(env_data)
if parsed_args.output_env_file:
if os.path.exists(parsed_args.output_env_file):
self.log.warning("Output env file exists, \
moving it to backup.")
self.log.warning("Output env file exists, "
"moving it to backup.")
shutil.move(parsed_args.output_env_file,
parsed_args.output_env_file + ".backup")
utils.safe_write(parsed_args.output_env_file, env_data)
@ -957,8 +957,8 @@ class TripleOImagePrepare(command.Command):
env_data = build_env_file(params, self.app.command_options)
if parsed_args.output_env_file:
if os.path.exists(parsed_args.output_env_file):
self.log.warning("Output env file exists, \
moving it to backup.")
self.log.warning("Output env file exists, "
"moving it to backup.")
shutil.move(parsed_args.output_env_file,
parsed_args.output_env_file + ".backup")
utils.safe_write(parsed_args.output_env_file, env_data)