Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cs_vpc_offering: listVPCOffering API returns any matching names #37783

Merged
merged 4 commits into from Mar 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/ansible/modules/cloud/cloudstack/cs_vpc_offering.py
Expand Up @@ -149,7 +149,9 @@ def get_vpc_offering(self):
vo = self.query_api('listVPCOfferings', **args)

if vo:
self.vpc_offering = vo['vpcoffering'][0]
for vpc_offer in vo['vpcoffering']:
if args['name'] == vpc_offer['name']:
self.vpc_offering = vpc_offer

return self.vpc_offering

Expand Down