diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-05-03 01:40:44 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-05-03 01:40:44 +0000 |
commit | a651c7b5e3d5defda2dba7055c04d405dd7c769c (patch) | |
tree | 3f43289457ce8ede07ba8217b84a7be9b9bbd882 /src/sbin | |
parent | 5bc7ef3071c4e9dff2de1b7221ba06d0974b80fa (diff) | |
download | bcfg2-a651c7b5e3d5defda2dba7055c04d405dd7c769c.tar.gz bcfg2-a651c7b5e3d5defda2dba7055c04d405dd7c769c.tar.bz2 bcfg2-a651c7b5e3d5defda2dba7055c04d405dd7c769c.zip |
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
Diffstat (limited to 'src/sbin')
-rwxr-xr-x | src/sbin/bcfg2-info | 4 |
1 files changed, 2 insertions, 2 deletions
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() |