From dcfc8525df6e7ffda75f55691dd67d2544c24347 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 7 Dec 2011 20:16:20 -0600 Subject: bcfg2-info: Bugfix from Ticket #1076 Signed-off-by: Sol Jerome --- src/sbin/bcfg2-info | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/sbin') 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: -- cgit v1.2.3-1-g7c22