diff options
-rwxr-xr-x | src/migration-scripts/system/11-to-12 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/migration-scripts/system/11-to-12 b/src/migration-scripts/system/11-to-12 index 0c92a0746..36311a19d 100755 --- a/src/migration-scripts/system/11-to-12 +++ b/src/migration-scripts/system/11-to-12 @@ -40,8 +40,8 @@ for host in config.list_nodes(cbase): config.set(cbase + [h, 'facility', fac, 'level'], value=lvl) config.delete(cbase + [host]) - try: - open(file_name,'w').write(config.to_string()) - except OSError as e: - print("Failed to save the modified config: {}".format(e)) - sys.exit(1) +try: + open(file_name,'w').write(config.to_string()) +except OSError as e: + print("Failed to save the modified config: {}".format(e)) + sys.exit(1) |