Fix infrequent PEP 8 issues.

This commit is contained in:
Matt Clay 2017-01-27 13:04:59 -08:00
commit 63b1e0c277
31 changed files with 41 additions and 50 deletions

View file

@ -208,7 +208,7 @@ def main():
results['view'] = cf_man.view(ct_name)
# only update if the values have changed.
if results['view']['S3BucketName'] != s3_bucket_name or \
results['view'].get('S3KeyPrefix', '') != s3_key_prefix or \
results['view'].get('S3KeyPrefix', '') != s3_key_prefix or \
results['view']['IncludeGlobalServiceEvents'] != include_global_events:
if not module.check_mode:
results['update'] = cf_man.update(name=ct_name, s3_bucket_name=s3_bucket_name, s3_key_prefix=s3_key_prefix, include_global_service_events=include_global_events)

View file

@ -148,7 +148,7 @@ def main():
module = AnsibleModule(argument_spec=argument_spec)
# Validate Requirements
# Validate Requirements
if not HAS_BOTO3:
module.fail_json(msg='json and botocore/boto3 is required.')

View file

@ -148,7 +148,7 @@ def main():
module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True)
# Validate Requirements
# Validate Requirements
if not HAS_BOTO3:
module.fail_json(msg='json and boto3 is required.')
@ -160,7 +160,7 @@ def main():
# call your function here
results = list_virtual_gateways(connection, module)
module.exit_json(result=results)

View file

@ -270,7 +270,7 @@ def main():
if not module.params['provider_physical_network']:
module.fail_json(msg = " for vlan and flat networks, variable provider_physical_network should be set.")
if module.params['provider_network_type'] in ['vlan', 'gre']:
if module.params['provider_network_type'] in ['vlan', 'gre']:
if not module.params['provider_segmentation_id']:
module.fail_json(msg = " for vlan & gre networks, variable provider_segmentation_id should be set.")

View file

@ -159,4 +159,4 @@ from ansible.module_utils.vmware import *
from ansible.module_utils.basic import *
if __name__ == '__main__':
main()
main()