mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Plugin timesync_status: use common pattern to check input args
This commit is contained in:
parent
0e43e7790f
commit
493b71d9f0
1 changed files with 4 additions and 4 deletions
|
@ -132,9 +132,9 @@ def config():
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) == 1 or sys.argv[1] == 'fetch':
|
||||
retrieve()
|
||||
elif sys.argv[1] == 'config':
|
||||
if len(sys.argv) > 1 and sys.argv[1] == 'config':
|
||||
config()
|
||||
elif sys.argv[1] == 'autoconf':
|
||||
elif len(sys.argv) > 1 and sys.argv[1] == 'autoconf':
|
||||
autoconf()
|
||||
else:
|
||||
retrieve()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue