commit 213e1a9d5fb6ca251004530e975acdfdfdf97329
Author: Thomas Woerner <twoerner@redhat.com>
Date: Fri Jul 15 19:16:57 2016 +0200
firewall-cmd: Fixed traceback without args
diff --git a/src/firewall-cmd b/src/firewall-cmd
index 5c570ae..d408c09 100755
--- a/src/firewall-cmd
+++ b/src/firewall-cmd
@@ -650,9 +650,10 @@ parser_direct.add_argument("--get-all-rules", action="store_true")
##############################################################################
+args = sys.argv[1:]
+
if len(sys.argv) > 1:
i = -1
- args = sys.argv[1:]
if '--passthrough' in args:
i = args.index('--passthrough') + 1
elif '--add-passthrough' in args: