Skip to content

Commit

Permalink
Correct check-mode support declaration format fix
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Simon <[email protected]>
  • Loading branch information
arth-simon committed Feb 29, 2024
1 parent faee42b commit 6d3983e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion plugins/module_utils/oneview.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,6 @@ def check_resource_absent(self, method='delete'):
return {"changed": True, "msg": self.MSG_DELETED}
else:
return {"changed": False, "msg": self.MSG_ALREADY_ABSENT}


def check_resource_scopes_set(self, state, fact_name, scope_uris):
"""
Expand Down
3 changes: 1 addition & 2 deletions plugins/modules/oneview_fc_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ def __init__(self):
required=True,
choices=['present', 'absent']))

super().__init__(additional_arg_spec=additional_arg_spec, validate_etag_support=True,
supports_check_mode=True)
super().__init__(additional_arg_spec=additional_arg_spec, validate_etag_support=True, supports_check_mode=True)

self.set_resource_object(self.oneview_client.fc_networks)
self.connection_templates = self.oneview_client.connection_templates
Expand Down
3 changes: 1 addition & 2 deletions plugins/modules/oneview_storage_system_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ def __init__(self):
storage_hostname=dict(type='str')
)

super().__init__(additional_arg_spec=argument_spec, validate_etag_support=True,
supports_check_mode=True)
super().__init__(additional_arg_spec=argument_spec, validate_etag_support=True, supports_check_mode=True)
self.set_resource_object(self.oneview_client.storage_systems)

def execute_module(self):
Expand Down
3 changes: 1 addition & 2 deletions plugins/modules/oneview_task_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ class TaskFactsModule(OneViewModule):
)

def __init__(self):
super().__init__(additional_arg_spec=self.argument_spec, validate_etag_support=True,
supports_check_mode=True)
super().__init__(additional_arg_spec=self.argument_spec, validate_etag_support=True, supports_check_mode=True)

self.set_resource_object(self.oneview_client.tasks)

Expand Down

0 comments on commit 6d3983e

Please sign in to comment.