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:
|
if vpcs:
|
||||||
vpc_name = self.module.params.get('name')
|
vpc_name = self.module.params.get('name')
|
||||||
for v in vpcs['vpc']:
|
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
|
self.vpc = v
|
||||||
break
|
break
|
||||||
return self.vpc
|
return self.vpc
|
||||||
|
@ -344,7 +344,7 @@ class AnsibleCloudStackVpc(AnsibleCloudStack):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec=cs_argument_spec()
|
argument_spec = cs_argument_spec()
|
||||||
argument_spec.update(dict(
|
argument_spec.update(dict(
|
||||||
name=dict(required=True),
|
name=dict(required=True),
|
||||||
cidr=dict(default=None),
|
cidr=dict(default=None),
|
||||||
|
@ -387,5 +387,6 @@ def main():
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue