cs_vpc: fix pep8 (#21964)
This commit is contained in:
parent
21880b9742
commit
cecf22039d
1 changed files with 3 additions and 2 deletions
|
@ -255,7 +255,7 @@ class AnsibleCloudStackVpc(AnsibleCloudStack):
|
|||
if vpcs:
|
||||
vpc_name = self.module.params.get('name')
|
||||
for v in vpcs['vpc']:
|
||||
if vpc_name.lower() in [ v['name'].lower(), v['id']]:
|
||||
if vpc_name.lower() in [v['name'].lower(), v['id']]:
|
||||
self.vpc = v
|
||||
break
|
||||
return self.vpc
|
||||
|
@ -344,7 +344,7 @@ class AnsibleCloudStackVpc(AnsibleCloudStack):
|
|||
|
||||
|
||||
def main():
|
||||
argument_spec=cs_argument_spec()
|
||||
argument_spec = cs_argument_spec()
|
||||
argument_spec.update(dict(
|
||||
name=dict(required=True),
|
||||
cidr=dict(default=None),
|
||||
|
@ -387,5 +387,6 @@ def main():
|
|||
|
||||
module.exit_json(**result)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue