1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-21 11:19:00 +00:00

Reformat everything.

This commit is contained in:
Felix Fontein 2025-11-01 12:08:41 +01:00
parent 3f2213791a
commit 340ff8586d
1008 changed files with 61301 additions and 58309 deletions

View file

@ -83,8 +83,8 @@ from ansible_collections.community.general.plugins.module_utils.oneview import O
class FcoeNetworkInfoModule(OneViewModuleBase):
def __init__(self):
argument_spec = dict(
name=dict(type='str'),
params=dict(type='dict'),
name=dict(type="str"),
params=dict(type="dict"),
)
super().__init__(
@ -93,9 +93,8 @@ class FcoeNetworkInfoModule(OneViewModuleBase):
)
def execute_module(self):
if self.module.params['name']:
fcoe_networks = self.oneview_client.fcoe_networks.get_by('name', self.module.params['name'])
if self.module.params["name"]:
fcoe_networks = self.oneview_client.fcoe_networks.get_by("name", self.module.params["name"])
else:
fcoe_networks = self.oneview_client.fcoe_networks.get_all(**self.facts_params)
@ -106,5 +105,5 @@ def main():
FcoeNetworkInfoModule().run()
if __name__ == '__main__':
if __name__ == "__main__":
main()