From a651c7b5e3d5defda2dba7055c04d405dd7c769c Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Sat, 3 May 2008 01:40:44 +0000 Subject: bcfg2-info: Fix use of command line options in non-interactive mode (Resolves Ticket #550) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4590 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-info | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index 0412dff47..65310d6ee 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -278,8 +278,8 @@ if __name__ == '__main__': loop = infoCore(setup['repo'], setup['structures'], setup['generators'], setup['password'], setup['svn']) loop.plugins['Metadata'].load_probedata() - if len(sys.argv) > 1: - loop.onecmd(" ".join(sys.argv[1:])) + if "args" in setup and setup['args']: + loop.onecmd(" ".join(setup['args'])) raise SystemExit(0) else: loop.do_loop() -- cgit v1.2.3-1-g7c22