From 7021b97dad29d2e2509a0f5b7024eb506d04b62b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 27 Oct 2019 23:21:59 +0100 Subject: snmp: fix verify() indent on script extensions --- src/conf_mode/snmp.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/conf_mode') 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] -- cgit v1.2.3