mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fix infrequent PEP 8 issues.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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.')
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user