cloudstack: fix project name must not be case sensitiv

This commit is contained in:
Rene Moser 2015-06-09 13:06:24 +02:00
parent 57813a2e74
commit 443be858f1

View file

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