mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cli: Fix nonetype issue with cachemaker and exit after printing version
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
d7f9aa637e
commit
4ad5d1a4f5
@ -100,7 +100,11 @@ def monkeycache(apis):
|
||||
cache['count'] = getvalue(apis[responsekey], 'count')
|
||||
cache['asyncapis'] = []
|
||||
|
||||
for api in getvalue(apis[responsekey], 'api'):
|
||||
apilist = getvalue(apis[responsekey], 'api')
|
||||
if apilist == None:
|
||||
print "[monkeycache] Server response issue, no apis found"
|
||||
|
||||
for api in apilist:
|
||||
name = getvalue(api, 'name')
|
||||
verb, subject = splitverbsubject(name)
|
||||
|
||||
|
||||
@ -487,6 +487,7 @@ def main():
|
||||
if options.version:
|
||||
print "cloudmonkey", __version__
|
||||
print __description__, "(%s)" % __projecturl__
|
||||
sys.exit(0)
|
||||
|
||||
shell = CloudMonkeyShell(sys.argv[0], options.cfile)
|
||||
if len(args) > 1:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user