cs_vpc: fix pep8 (#21964)

This commit is contained in:
René Moser 2017-02-26 10:21:12 +01:00 committed by GitHub
parent 21880b9742
commit cecf22039d

View file

@ -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()