diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-10-27 23:21:59 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-10-27 23:57:10 +0100 |
commit | 7021b97dad29d2e2509a0f5b7024eb506d04b62b (patch) | |
tree | 6f4d9fd3ae74deb7bbb26d73656e1e4852d7f9cf /src/conf_mode/snmp.py | |
parent | ed642ff5e958c6ef43dee5ef684fb5ccf85ad8cf (diff) | |
download | vyos-1x-7021b97dad29d2e2509a0f5b7024eb506d04b62b.tar.gz vyos-1x-7021b97dad29d2e2509a0f5b7024eb506d04b62b.zip |
snmp: fix verify() indent on script extensions
Diffstat (limited to 'src/conf_mode/snmp.py')
-rwxr-xr-x | src/conf_mode/snmp.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py index f2cc8bf17..f796e9978 100755 --- a/src/conf_mode/snmp.py +++ b/src/conf_mode/snmp.py @@ -543,11 +543,11 @@ def verify(snmp): ### check if the configured script actually exist under /config/user-data if snmp['script_ext']: - for ext in snmp['script_ext']: - if not os.path.isfile(snmp['script_ext'][ext]): - print ("WARNING: script: " + snmp['script_ext'][ext] + " doesn\'t exist") - else: - os.chmod(snmp['script_ext'][ext], 0o555) + for ext in snmp['script_ext']: + if not os.path.isfile(snmp['script_ext'][ext]): + print ("WARNING: script: " + snmp['script_ext'][ext] + " doesn\'t exist") + else: + os.chmod(snmp['script_ext'][ext], 0o555) for listen in snmp['listen_address']: addr = listen[0] |