mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-01 16:08:53 +00:00
Reformat everything.
This commit is contained in:
parent
3f2213791a
commit
340ff8586d
1008 changed files with 61301 additions and 58309 deletions
|
|
@ -159,9 +159,7 @@ def create_vcn(virtual_network_client, module):
|
|||
|
||||
|
||||
def main():
|
||||
module_args = oci_utils.get_taggable_arg_spec(
|
||||
supports_create=True, supports_wait=True
|
||||
)
|
||||
module_args = oci_utils.get_taggable_arg_spec(supports_create=True, supports_wait=True)
|
||||
module_args.update(
|
||||
dict(
|
||||
cidr_block=dict(type="str"),
|
||||
|
|
@ -182,9 +180,7 @@ def main():
|
|||
if not HAS_OCI_PY_SDK:
|
||||
module.fail_json(msg=missing_required_lib("oci"))
|
||||
|
||||
virtual_network_client = oci_utils.create_service_client(
|
||||
module, VirtualNetworkClient
|
||||
)
|
||||
virtual_network_client = oci_utils.create_service_client(module, VirtualNetworkClient)
|
||||
|
||||
exclude_attributes = {"display_name": True, "dns_label": True}
|
||||
state = module.params["state"]
|
||||
|
|
@ -194,9 +190,7 @@ def main():
|
|||
if vcn_id is not None:
|
||||
result = delete_vcn(virtual_network_client, module)
|
||||
else:
|
||||
module.fail_json(
|
||||
msg="Specify vcn_id with state as 'absent' to delete a VCN."
|
||||
)
|
||||
module.fail_json(msg="Specify vcn_id with state as 'absent' to delete a VCN.")
|
||||
|
||||
else:
|
||||
if vcn_id is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue