summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorRobert Gogolok <gogo@cs.uni-sb.de>2008-01-08 22:50:53 +0000
committerRobert Gogolok <gogo@cs.uni-sb.de>2008-01-08 22:50:53 +0000
commit002c80f9148025d758269d3d194146e1f968a649 (patch)
treee3d10ff07ac5feecb95e7764bc1d7da7373ea9eb /src/lib
parent87a49a6dad018c60fa089d2103bc4a90f39b939b (diff)
downloadbcfg2-002c80f9148025d758269d3d194146e1f968a649.tar.gz
bcfg2-002c80f9148025d758269d3d194146e1f968a649.tar.bz2
bcfg2-002c80f9148025d758269d3d194146e1f968a649.zip
fix 'bcfg2-admin init': args[0] is not necessarily present
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4218 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Admin/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Admin/__init__.py b/src/lib/Server/Admin/__init__.py
index 57b9d2a86..0a2cb7bd7 100644
--- a/src/lib/Server/Admin/__init__.py
+++ b/src/lib/Server/Admin/__init__.py
@@ -24,7 +24,7 @@ class Mode(object):
cfp = property(getCFP)
def __call__(self, args):
- if args[0] == 'help':
+ if len(args) > 0 and args[0] == 'help':
print self.__longhelp__
raise SystemExit(0)