summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-12-07 20:16:20 -0600
committerSol Jerome <sol.jerome@gmail.com>2011-12-07 20:16:20 -0600
commitdcfc8525df6e7ffda75f55691dd67d2544c24347 (patch)
treecd0a602e54521ef0bed8c105375f3352ab1109b0 /src
parent7deb13279361d9b5e0fc180ca7a2135436113485 (diff)
downloadbcfg2-dcfc8525df6e7ffda75f55691dd67d2544c24347.tar.gz
bcfg2-dcfc8525df6e7ffda75f55691dd67d2544c24347.tar.bz2
bcfg2-dcfc8525df6e7ffda75f55691dd67d2544c24347.zip
bcfg2-info: Bugfix from Ticket #1076
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src')
-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: