summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/sbin/bcfg2-info7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index aef5f1afc..4412c712a 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -195,9 +195,10 @@ class infoCore(cmd.Cmd, Bcfg2.Server.Core.Core):
"""Build client configuration."""
alist = args.split()
path_force = False
- if '-f' in args:
- alist.remove('-f')
- path_force = True
+ for arg in alist:
+ if arg == '-f':
+ alist.remove('-f')
+ path_force = True
if len(alist) == 2:
client, ofile = alist
if not ofile.startswith('/tmp') and not path_force: