(cherry picked from commit 270e799cb6
)
This commit is contained in:
parent
3ac91f7e28
commit
46cf6ed677
1 changed files with 3 additions and 1 deletions
|
@ -149,7 +149,9 @@ class AnsibleCloudStackVPCOffering(AnsibleCloudStack):
|
||||||
vo = self.query_api('listVPCOfferings', **args)
|
vo = self.query_api('listVPCOfferings', **args)
|
||||||
|
|
||||||
if vo:
|
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
|
return self.vpc_offering
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue