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:
parent
d31fbf2e4c
commit
5f22dfdbf8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue