From 13a3fe62a1773919e0d42570de3c1b75616fee2c Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Thu, 13 Dec 2018 17:08:49 -0500 Subject: [PATCH] Backup and Restore: restore-image failed to read platform.conf During restore when /etc/platform/platform.conf file is generated, a space is inserted in the beginning of certain lines. Parsing the config file failed due to the extra space. Change-Id: Ib074d5eecfef8b8608ad6287c1d360a9a40b4b22 Closes-bug: 1808417 Signed-off-by: Wei Zhou --- .../controllerconfig/controllerconfig/backup_restore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllerconfig/controllerconfig/controllerconfig/backup_restore.py b/controllerconfig/controllerconfig/controllerconfig/backup_restore.py index 5e10b542d6..e54bb350b4 100644 --- a/controllerconfig/controllerconfig/controllerconfig/backup_restore.py +++ b/controllerconfig/controllerconfig/controllerconfig/backup_restore.py @@ -347,7 +347,7 @@ def restore_configuration(archive, staging_dir): # platform_conf manifest will add these back in. pass else: - print(line, end=' ') + print(line, end='') fileinput.close() # Move updated platform.conf file into place. os.rename(temp_platform_conf_file, tsconfig.PLATFORM_CONF_FILE)