cloudstack: fix project name must not be case sensitiv

reviewable/pr18780/r1
Rene Moser 10 years ago committed by Greg DeKoenigsberg
parent d722d6de97
commit 1d49d4af09

@ -167,7 +167,7 @@ class AnsibleCloudStackProject(AnsibleCloudStack):
projects = self.cs.listProjects(**args)
if projects:
for p in projects['project']:
if project in [ p['name'], p['id']]:
if project.lower() in [ p['name'].lower(), p['id']]:
self.project = p
break
return self.project

Loading…
Cancel
Save