diff options
author | John Estabrook <jestabro@vyos.io> | 2020-09-25 10:58:58 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2020-09-25 12:49:15 -0500 |
commit | 4c818baa59046bdc5023abe8b63fa6f62611d115 (patch) | |
tree | a4db52467ba5ea2190fb47fa7916d7c9097fe174 /src/migration-scripts/system | |
parent | f39f5dde342aa5e14d1fb4155920c61ac5fd11b1 (diff) | |
download | vyos-1x-4c818baa59046bdc5023abe8b63fa6f62611d115.tar.gz vyos-1x-4c818baa59046bdc5023abe8b63fa6f62611d115.zip |
syslog: T1845: fix indentation level
Diffstat (limited to 'src/migration-scripts/system')
-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) |