summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-admin
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-09-10 13:16:09 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-09-10 13:16:09 -0500
commit9584ab6df8498eea40929801a680d66559199a0f (patch)
tree0ac4b8a6cbe5b5c0675bc95eb73d857b82861229 /src/sbin/bcfg2-admin
parentfde1158163fc938ef0c5463155d6db67e941a265 (diff)
downloadbcfg2-9584ab6df8498eea40929801a680d66559199a0f.tar.gz
bcfg2-9584ab6df8498eea40929801a680d66559199a0f.tar.bz2
bcfg2-9584ab6df8498eea40929801a680d66559199a0f.zip
bcfg2-admin: Fix conditional for help message
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/sbin/bcfg2-admin')
-rwxr-xr-xsrc/sbin/bcfg2-admin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin
index f5ee7df2a..09117a3f4 100755
--- a/src/sbin/bcfg2-admin
+++ b/src/sbin/bcfg2-admin
@@ -64,7 +64,7 @@ def main():
if setup['args'][0] in get_modes():
modname = setup['args'][0].capitalize()
- if setup['args'][1] == 'help':
+ if len(setup['args']) > 1 and setup['args'][1] == 'help':
print(mode_import(modname).__longhelp__)
raise SystemExit(0)
try: