Browse code

Fix error in last commit

Lorenz Hüdepohl authored on25/11/2017 06:02:26
Showing1 changed files
... ...
@@ -119,8 +119,9 @@ def mutative_cmd(cmdargs):
119 119
         check_call(cmdargs)
120 120
 
121 121
 only = []
122
-for o in args.only:
123
-    only.extend(["-r", o])
122
+if args.only:
123
+    for o in args.only:
124
+        only.extend(["-r", o])
124 125
 
125 126
 zfs_props = Popen([zfs, "get", "-t", "filesystem", "autosnapshot:{0}".format(args.tagname), "-H"] + only,
126 127
         stdout=PIPE)