diff --git a/plugins/module_utils/oneview.py b/plugins/module_utils/oneview.py index 14887808..79f63402 100644 --- a/plugins/module_utils/oneview.py +++ b/plugins/module_utils/oneview.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- ### -# Copyright (2016-2021) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -576,7 +576,7 @@ class OneViewModule(object): ONEVIEW_VALIDATE_ETAG_ARGS = dict( validate_etag=dict(type='bool', default=True)) - def __init__(self, additional_arg_spec=None, validate_etag_support=False): + def __init__(self, additional_arg_spec=None, validate_etag_support=False, supports_check_mode=False): """ OneViewModuleBase constructor. @@ -587,7 +587,7 @@ def __init__(self, additional_arg_spec=None, validate_etag_support=False): additional_arg_spec, validate_etag_support) self.module = AnsibleModule( - argument_spec=argument_spec, supports_check_mode=True) + argument_spec=argument_spec, supports_check_mode=supports_check_mode) self.resource_client = None self.current_resource = None @@ -742,7 +742,6 @@ def resource_present(self, fact_name, create_method='create', parameter_to_ignor Generic implementation of the present state for the OneView resources. It checks if the resource needs to be created or updated. - :arg str fact_name: Name of the fact returned to the Ansible. :arg str create_method: Function of the OneView client that will be called for resource creation. Usually create or add. @@ -863,6 +862,7 @@ 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): """ @@ -912,7 +912,7 @@ class OneViewModuleBase(object): ONEVIEW_VALIDATE_ETAG_ARGS = dict( validate_etag=dict(type='bool', default=True)) - def __init__(self, additional_arg_spec=None, validate_etag_support=False): + def __init__(self, additional_arg_spec=None, validate_etag_support=False, supports_check_mode=False): """ OneViewModuleBase constructor. @@ -923,7 +923,7 @@ def __init__(self, additional_arg_spec=None, validate_etag_support=False): additional_arg_spec, validate_etag_support) self.module = AnsibleModule( - argument_spec=argument_spec, supports_check_mode=True) + argument_spec=argument_spec, supports_check_mode=supports_check_mode) self._check_hpe_oneview_sdk() self._create_oneview_client() diff --git a/plugins/modules/oneview_appliance_configuration_timeconfig_facts.py b/plugins/modules/oneview_appliance_configuration_timeconfig_facts.py index eb106731..e430cf2d 100644 --- a/plugins/modules/oneview_appliance_configuration_timeconfig_facts.py +++ b/plugins/modules/oneview_appliance_configuration_timeconfig_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2021) Hewlett Packard Enterprise Development LP +# Copyright (2021-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -68,7 +68,7 @@ class ApplianceConfigurationTimeconfigFactsModule(OneViewModule): def __init__(self): - super().__init__(additional_arg_spec=dict(sessionID=dict(required=False, type='str'))) + super().__init__(additional_arg_spec=dict(sessionID=dict(required=False, type='str')), supports_check_mode=True) self.set_resource_object(self.oneview_client.appliance_configuration_timeconfig) def execute_module(self): diff --git a/plugins/modules/oneview_appliance_device_snmp_v1_trap_destinations_facts.py b/plugins/modules/oneview_appliance_device_snmp_v1_trap_destinations_facts.py index 181084c2..4cb1e92a 100644 --- a/plugins/modules/oneview_appliance_device_snmp_v1_trap_destinations_facts.py +++ b/plugins/modules/oneview_appliance_device_snmp_v1_trap_destinations_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2021) Hewlett Packard Enterprise Development LP +# Copyright (2021-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -129,7 +129,7 @@ class ApplianceDeviceSnmpV1TrapDestinationsFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.appliance_device_snmp_v1_trap_destinations) def execute_module(self): diff --git a/plugins/modules/oneview_appliance_device_snmp_v3_trap_destinations_facts.py b/plugins/modules/oneview_appliance_device_snmp_v3_trap_destinations_facts.py index 08c80ab8..88a4d0f7 100644 --- a/plugins/modules/oneview_appliance_device_snmp_v3_trap_destinations_facts.py +++ b/plugins/modules/oneview_appliance_device_snmp_v3_trap_destinations_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2021) Hewlett Packard Enterprise Development LP +# Copyright (2021-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -129,7 +129,7 @@ class ApplianceDeviceSnmpV3TrapDestinationsFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.appliance_device_snmp_v3_trap_destinations) def execute_module(self): diff --git a/plugins/modules/oneview_appliance_device_snmp_v3_users_facts.py b/plugins/modules/oneview_appliance_device_snmp_v3_users_facts.py index 4ae543c6..a617d22d 100644 --- a/plugins/modules/oneview_appliance_device_snmp_v3_users_facts.py +++ b/plugins/modules/oneview_appliance_device_snmp_v3_users_facts.py @@ -1,6 +1,6 @@ #!/usr/bin/python ### -# Copyright (2016-2021) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -113,7 +113,7 @@ def __init__(self): sessionID=dict(required=False, type='str'), params=dict(required=False, type='dict') ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.appliance_device_snmp_v3_users) def execute_module(self): diff --git a/plugins/modules/oneview_appliance_network_interface_facts.py b/plugins/modules/oneview_appliance_network_interface_facts.py index 93d54ef2..98074885 100644 --- a/plugins/modules/oneview_appliance_network_interface_facts.py +++ b/plugins/modules/oneview_appliance_network_interface_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2021) Hewlett Packard Enterprise Development LP +# Copyright (2021-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -100,7 +100,7 @@ class ApplianceNetworkInterfaceFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.appliance_network_interfaces) def execute_module(self): diff --git a/plugins/modules/oneview_appliance_proxy_configuration_facts.py b/plugins/modules/oneview_appliance_proxy_configuration_facts.py index 90240b5e..56b09c04 100644 --- a/plugins/modules/oneview_appliance_proxy_configuration_facts.py +++ b/plugins/modules/oneview_appliance_proxy_configuration_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2021) Hewlett Packard Enterprise Development LP +# Copyright (2021-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -65,7 +65,7 @@ class ApplianceProxyConfigurationFactsModule(OneViewModule): def __init__(self): - super().__init__(additional_arg_spec=dict(sessionID=dict(required=False, type='str'))) + super().__init__(additional_arg_spec=dict(sessionID=dict(required=False, type='str')), supports_check_mode=True) self.set_resource_object(self.oneview_client.appliance_proxy_configuration) def execute_module(self): diff --git a/plugins/modules/oneview_appliance_ssh_access_facts.py b/plugins/modules/oneview_appliance_ssh_access_facts.py index 3085e5a7..c304709f 100644 --- a/plugins/modules/oneview_appliance_ssh_access_facts.py +++ b/plugins/modules/oneview_appliance_ssh_access_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2021) Hewlett Packard Enterprise Development LP +# Copyright (2021-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -70,7 +70,7 @@ class ApplianceSshAccessFactsModule(OneViewModule): def __init__(self): - super().__init__(additional_arg_spec=dict(sessionID=dict(required=False, type='str'))) + super().__init__(additional_arg_spec=dict(sessionID=dict(required=False, type='str')), supports_check_mode=True) self.set_resource_object(self.oneview_client.appliance_ssh_access) def execute_module(self): diff --git a/plugins/modules/oneview_appliance_time_and_locale_configuration_facts.py b/plugins/modules/oneview_appliance_time_and_locale_configuration_facts.py index 04b1096f..79194654 100644 --- a/plugins/modules/oneview_appliance_time_and_locale_configuration_facts.py +++ b/plugins/modules/oneview_appliance_time_and_locale_configuration_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2021) Hewlett Packard Enterprise Development LP +# Copyright (2021-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -69,7 +69,7 @@ class ApplianceTimeAndLocaleConfigurationFactsModule(OneViewModule): def __init__(self): - super().__init__(additional_arg_spec=dict(sessionID=dict(required=False, type='str'))) + super().__init__(additional_arg_spec=dict(sessionID=dict(required=False, type='str')), supports_check_mode=True) self.set_resource_object(self.oneview_client.appliance_time_and_locale_configuration) def execute_module(self): diff --git a/plugins/modules/oneview_certificates_server_facts.py b/plugins/modules/oneview_certificates_server_facts.py index dddf46ba..734c293d 100644 --- a/plugins/modules/oneview_certificates_server_facts.py +++ b/plugins/modules/oneview_certificates_server_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -90,7 +90,7 @@ def __init__(self): remote=dict(required=False, type='str'), aliasName=dict(required=False, type='str'), ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.resource_client = self.oneview_client.certificates_server def execute_module(self): diff --git a/plugins/modules/oneview_connection_template_facts.py b/plugins/modules/oneview_connection_template_facts.py index 06d49f6e..b2edbae5 100644 --- a/plugins/modules/oneview_connection_template_facts.py +++ b/plugins/modules/oneview_connection_template_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -130,7 +130,7 @@ def __init__(self): options=dict(required=False, type='list', elements='str'), params=dict(required=False, type='dict') ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.connection_templates) def execute_module(self): diff --git a/plugins/modules/oneview_drive_enclosure_facts.py b/plugins/modules/oneview_drive_enclosure_facts.py index 6a72e33e..912b2f3d 100644 --- a/plugins/modules/oneview_drive_enclosure_facts.py +++ b/plugins/modules/oneview_drive_enclosure_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2023) Hewlett Packard Enterprise Development LP +# Copyright (2023-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -134,7 +134,7 @@ class DriveEnclosureFactsModule(OneViewModule): params=dict(type='dict')) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.drive_enclosures) def execute_module(self): diff --git a/plugins/modules/oneview_enclosure_facts.py b/plugins/modules/oneview_enclosure_facts.py index c0507285..24700245 100644 --- a/plugins/modules/oneview_enclosure_facts.py +++ b/plugins/modules/oneview_enclosure_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -166,7 +166,7 @@ class EnclosureFactsModule(OneViewModule): argument_spec = dict(name=dict(type='str'), sessionID=dict(required=False, type='str'), options=dict(type='list', elements='str'), params=dict(type='dict')) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.enclosures) def execute_module(self): diff --git a/plugins/modules/oneview_enclosure_group_facts.py b/plugins/modules/oneview_enclosure_group_facts.py index ecdbf49f..ca281315 100644 --- a/plugins/modules/oneview_enclosure_group_facts.py +++ b/plugins/modules/oneview_enclosure_group_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -127,7 +127,7 @@ class EnclosureGroupFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.enclosure_groups) def execute_module(self): diff --git a/plugins/modules/oneview_ethernet_network_facts.py b/plugins/modules/oneview_ethernet_network_facts.py index 16eba0eb..f9ae572a 100644 --- a/plugins/modules/oneview_ethernet_network_facts.py +++ b/plugins/modules/oneview_ethernet_network_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2019) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -139,7 +139,7 @@ class EthernetNetworkFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.ethernet_networks) def execute_module(self): diff --git a/plugins/modules/oneview_fc_network.py b/plugins/modules/oneview_fc_network.py index 1f46393d..2bb01f32 100644 --- a/plugins/modules/oneview_fc_network.py +++ b/plugins/modules/oneview_fc_network.py @@ -1,6 +1,6 @@ #!/usr/bin/python ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -132,7 +132,8 @@ def __init__(self): required=True, choices=['present', 'absent'])) - super().__init__(additional_arg_spec=additional_arg_spec, validate_etag_support=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 diff --git a/plugins/modules/oneview_fc_network_facts.py b/plugins/modules/oneview_fc_network_facts.py index d016d6df..559d25d0 100644 --- a/plugins/modules/oneview_fc_network_facts.py +++ b/plugins/modules/oneview_fc_network_facts.py @@ -1,6 +1,6 @@ #!/usr/bin/python ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -105,7 +105,7 @@ def __init__(self): params=dict(required=False, type='dict') ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.resource_client = self.oneview_client.fc_networks diff --git a/plugins/modules/oneview_fcoe_network_facts.py b/plugins/modules/oneview_fcoe_network_facts.py index 1ef17cfc..04b7a44b 100644 --- a/plugins/modules/oneview_fcoe_network_facts.py +++ b/plugins/modules/oneview_fcoe_network_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -109,7 +109,7 @@ def __init__(self): params=dict(type='dict'), ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.fcoe_networks) def execute_module(self): diff --git a/plugins/modules/oneview_firmware_driver_facts.py b/plugins/modules/oneview_firmware_driver_facts.py index 4b58cf3e..9f13f6a5 100644 --- a/plugins/modules/oneview_firmware_driver_facts.py +++ b/plugins/modules/oneview_firmware_driver_facts.py @@ -1,6 +1,6 @@ #!/usr/bin/python ### -# Copyright (2021) Hewlett Packard Enterprise Development LP +# Copyright (2021-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -145,7 +145,7 @@ def __init__(self): params=dict(required=False, type='dict') ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.resource_client = self.oneview_client.firmware_drivers def execute_module(self): diff --git a/plugins/modules/oneview_hypervisor_cluster_profile_facts.py b/plugins/modules/oneview_hypervisor_cluster_profile_facts.py index 540fd407..bae27e5c 100644 --- a/plugins/modules/oneview_hypervisor_cluster_profile_facts.py +++ b/plugins/modules/oneview_hypervisor_cluster_profile_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -140,7 +140,7 @@ def __init__(self): options=dict(type='list', elements='str'), params=dict(type='dict') ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.hypervisor_cluster_profiles) def execute_module(self): diff --git a/plugins/modules/oneview_hypervisor_manager_facts.py b/plugins/modules/oneview_hypervisor_manager_facts.py index 50aa4eb3..259d5627 100644 --- a/plugins/modules/oneview_hypervisor_manager_facts.py +++ b/plugins/modules/oneview_hypervisor_manager_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -100,7 +100,7 @@ def __init__(self): params=dict(required=False, type='dict') ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.resource_client = self.oneview_client.hypervisor_managers def execute_module(self): diff --git a/plugins/modules/oneview_id_pools_facts.py b/plugins/modules/oneview_id_pools_facts.py index 7ba99ca7..92b0ff81 100644 --- a/plugins/modules/oneview_id_pools_facts.py +++ b/plugins/modules/oneview_id_pools_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2021) Hewlett Packard Enterprise Development LP +# Copyright (2021-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -129,7 +129,7 @@ class IdPoolsFactsModule(OneViewModule): def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec, validate_etag_support=True) + super().__init__(additional_arg_spec=self.argument_spec, validate_etag_support=True, supports_check_mode=True) self.set_resource_object(self.oneview_client.id_pools) diff --git a/plugins/modules/oneview_id_pools_ipv4_range_facts.py b/plugins/modules/oneview_id_pools_ipv4_range_facts.py index 660b0690..8e1f10dd 100644 --- a/plugins/modules/oneview_id_pools_ipv4_range_facts.py +++ b/plugins/modules/oneview_id_pools_ipv4_range_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2021) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -154,7 +154,7 @@ def __init__(self): params=dict(required=False, type='dict'), sessionID=dict(required=False, type='str') ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.resource_client = self.oneview_client.id_pools_ipv4_ranges def execute_module(self): diff --git a/plugins/modules/oneview_id_pools_ipv4_subnet_facts.py b/plugins/modules/oneview_id_pools_ipv4_subnet_facts.py index c93ae512..9b637d6b 100644 --- a/plugins/modules/oneview_id_pools_ipv4_subnet_facts.py +++ b/plugins/modules/oneview_id_pools_ipv4_subnet_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2021) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -116,7 +116,7 @@ def __init__(self): uri=dict(required=False, type='str'), params=dict(required=False, type='dict') ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.id_pools_ipv4_subnets) def execute_module(self): diff --git a/plugins/modules/oneview_interconnect_facts.py b/plugins/modules/oneview_interconnect_facts.py index 0c67b575..39b57b24 100644 --- a/plugins/modules/oneview_interconnect_facts.py +++ b/plugins/modules/oneview_interconnect_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -249,7 +249,7 @@ def __init__(self): options=dict(required=False, type='list', elements='str'), params=dict(required=False, type='dict'), ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.interconnects) def execute_module(self): diff --git a/plugins/modules/oneview_interconnect_type_facts.py b/plugins/modules/oneview_interconnect_type_facts.py index 67cab716..5789bc35 100644 --- a/plugins/modules/oneview_interconnect_type_facts.py +++ b/plugins/modules/oneview_interconnect_type_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -104,7 +104,7 @@ class InterconnectTypeFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.resource_client = self.oneview_client.interconnect_types def execute_module(self): diff --git a/plugins/modules/oneview_label_facts.py b/plugins/modules/oneview_label_facts.py index 9281204c..253ee965 100644 --- a/plugins/modules/oneview_label_facts.py +++ b/plugins/modules/oneview_label_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2021) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -137,7 +137,7 @@ def __init__(self): params=dict(required=False, type='dict'), get_resources=dict(required=False, type='bool') ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.resource_client = self.oneview_client.labels def execute_module(self): diff --git a/plugins/modules/oneview_logical_enclosure_facts.py b/plugins/modules/oneview_logical_enclosure_facts.py index f215e0b5..be95aece 100644 --- a/plugins/modules/oneview_logical_enclosure_facts.py +++ b/plugins/modules/oneview_logical_enclosure_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -137,7 +137,7 @@ class LogicalEnclosureFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.logical_enclosures) def execute_module(self): diff --git a/plugins/modules/oneview_logical_interconnect_facts.py b/plugins/modules/oneview_logical_interconnect_facts.py index c4e23d1f..3ade1b1c 100644 --- a/plugins/modules/oneview_logical_interconnect_facts.py +++ b/plugins/modules/oneview_logical_interconnect_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2021) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -224,7 +224,7 @@ class LogicalInterconnectFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.logical_interconnects) diff --git a/plugins/modules/oneview_logical_interconnect_group_facts.py b/plugins/modules/oneview_logical_interconnect_group_facts.py index 6ff0e6b8..9a8d85b7 100644 --- a/plugins/modules/oneview_logical_interconnect_group_facts.py +++ b/plugins/modules/oneview_logical_interconnect_group_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -127,7 +127,7 @@ def __init__(self): params=dict(type='dict'), ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.resource_client = self.oneview_client.logical_interconnect_groups def execute_module(self): diff --git a/plugins/modules/oneview_network_set_facts.py b/plugins/modules/oneview_network_set_facts.py index d17b2bdc..2edcd3f4 100644 --- a/plugins/modules/oneview_network_set_facts.py +++ b/plugins/modules/oneview_network_set_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -150,7 +150,7 @@ class NetworkSetFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.network_sets) def execute_module(self): diff --git a/plugins/modules/oneview_rack_manager_facts.py b/plugins/modules/oneview_rack_manager_facts.py index bcaf4652..19adf683 100644 --- a/plugins/modules/oneview_rack_manager_facts.py +++ b/plugins/modules/oneview_rack_manager_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2022) Hewlett Packard Enterprise Development LP +# Copyright (2022-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -224,7 +224,7 @@ def __init__(self): params=dict(required=False, type='dict'), sessionID=dict(required=False, type='str'), ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.rack_managers) def execute_module(self): diff --git a/plugins/modules/oneview_repositories_facts.py b/plugins/modules/oneview_repositories_facts.py index ef2ffdba..1907f12c 100644 --- a/plugins/modules/oneview_repositories_facts.py +++ b/plugins/modules/oneview_repositories_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # -# Copyright (2016-2021) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -126,7 +126,7 @@ class RepositoriesFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.repositories) def execute_module(self): diff --git a/plugins/modules/oneview_san_manager_facts.py b/plugins/modules/oneview_san_manager_facts.py index 59ec2eb8..4dbbeae1 100644 --- a/plugins/modules/oneview_san_manager_facts.py +++ b/plugins/modules/oneview_san_manager_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2022) Hewlett Packard Enterprise Development LP +# Copyright (2022-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -105,7 +105,7 @@ def __init__(self): params=dict(required=False, type='dict'), sessionID=dict(required=False, type='str'), ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.san_managers) self.san_providers = self.oneview_client.san_providers diff --git a/plugins/modules/oneview_sas_interconnect_facts.py b/plugins/modules/oneview_sas_interconnect_facts.py index 8419930a..717ad0ae 100644 --- a/plugins/modules/oneview_sas_interconnect_facts.py +++ b/plugins/modules/oneview_sas_interconnect_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2023) Hewlett Packard Enterprise Development LP +# Copyright (2023-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -124,7 +124,7 @@ class SasInterconnectFactsModule(OneViewModule): argument_spec = dict(name=dict(type='str'), uri=dict(required=False, type='str'), sessionID=dict(required=False, type='str'), params=dict(type='dict')) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.sas_interconnects) def execute_module(self): diff --git a/plugins/modules/oneview_sas_interconnect_type_facts.py b/plugins/modules/oneview_sas_interconnect_type_facts.py index a67599e0..cb4aad1a 100644 --- a/plugins/modules/oneview_sas_interconnect_type_facts.py +++ b/plugins/modules/oneview_sas_interconnect_type_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2023) Hewlett Packard Enterprise Development LP +# Copyright (2023-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -114,7 +114,7 @@ class SasInterconnectTypeFactsModule(OneViewModule): argument_spec = dict(name=dict(type='str'), uri=dict(required=False, type='str'), sessionID=dict(required=False, type='str'), params=dict(type='dict')) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.sas_interconnect_types) def execute_module(self): diff --git a/plugins/modules/oneview_sas_logical_interconnect_facts.py b/plugins/modules/oneview_sas_logical_interconnect_facts.py index 59e4748c..7a731096 100644 --- a/plugins/modules/oneview_sas_logical_interconnect_facts.py +++ b/plugins/modules/oneview_sas_logical_interconnect_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2023) Hewlett Packard Enterprise Development LP +# Copyright (2023-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -149,7 +149,7 @@ class SasLogicalInterconnectFactsModule(OneViewModule): params=dict(type='dict')) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.sas_logical_interconnects) def execute_module(self): diff --git a/plugins/modules/oneview_sas_logical_interconnect_group_facts.py b/plugins/modules/oneview_sas_logical_interconnect_group_facts.py index 47e07b29..e4048483 100644 --- a/plugins/modules/oneview_sas_logical_interconnect_group_facts.py +++ b/plugins/modules/oneview_sas_logical_interconnect_group_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2023) Hewlett Packard Enterprise Development LP +# Copyright (2023-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -124,7 +124,7 @@ class SasLogicalInterconnectGroupFactsModule(OneViewModule): argument_spec = dict(name=dict(type='str'), uri=dict(required=False, type='str'), sessionID=dict(required=False, type='str'), params=dict(type='dict')) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.sas_logical_interconnect_groups) def execute_module(self): diff --git a/plugins/modules/oneview_sas_logical_jbod_attachment_facts.py b/plugins/modules/oneview_sas_logical_jbod_attachment_facts.py index f222710d..5eccf29a 100644 --- a/plugins/modules/oneview_sas_logical_jbod_attachment_facts.py +++ b/plugins/modules/oneview_sas_logical_jbod_attachment_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2023) Hewlett Packard Enterprise Development LP +# Copyright (2023-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -122,7 +122,7 @@ class SasLogicalJbodAttachmentFactsModule(OneViewModule): argument_spec = dict(name=dict(type='str'), uri=dict(required=False, type='str'), sessionID=dict(required=False, type='str'), params=dict(type='dict')) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.sas_logical_jbod_attachments) def execute_module(self): diff --git a/plugins/modules/oneview_sas_logical_jbod_facts.py b/plugins/modules/oneview_sas_logical_jbod_facts.py index 05da6703..cc86a0d3 100644 --- a/plugins/modules/oneview_sas_logical_jbod_facts.py +++ b/plugins/modules/oneview_sas_logical_jbod_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2023) Hewlett Packard Enterprise Development LP +# Copyright (2023-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -150,7 +150,7 @@ class SasLogicalJbodFactsModule(OneViewModule): params=dict(type='dict')) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.sas_logical_jbods) def execute_module(self): diff --git a/plugins/modules/oneview_scope_facts.py b/plugins/modules/oneview_scope_facts.py index b8299046..a8392346 100644 --- a/plugins/modules/oneview_scope_facts.py +++ b/plugins/modules/oneview_scope_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -116,7 +116,7 @@ class ScopeFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.scopes) def execute_module(self): diff --git a/plugins/modules/oneview_server_hardware_facts.py b/plugins/modules/oneview_server_hardware_facts.py index 7ce0e257..428d18ce 100644 --- a/plugins/modules/oneview_server_hardware_facts.py +++ b/plugins/modules/oneview_server_hardware_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -242,7 +242,7 @@ def __init__(self): params=dict(required=False, type='dict'), sessionID=dict(required=False, type='str'), ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.server_hardware) def execute_module(self): diff --git a/plugins/modules/oneview_server_hardware_type_facts.py b/plugins/modules/oneview_server_hardware_type_facts.py index b90e4209..3ab3abc4 100644 --- a/plugins/modules/oneview_server_hardware_type_facts.py +++ b/plugins/modules/oneview_server_hardware_type_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2021) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -110,7 +110,7 @@ def __init__(self): uri=dict(required=False, type='str'), params=dict(required=False, type='dict') ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.server_hardware_types) def execute_module(self): diff --git a/plugins/modules/oneview_server_profile_facts.py b/plugins/modules/oneview_server_profile_facts.py index 1439e759..3ae7f700 100644 --- a/plugins/modules/oneview_server_profile_facts.py +++ b/plugins/modules/oneview_server_profile_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -267,7 +267,7 @@ class ServerProfileFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.server_profiles) def execute_module(self): diff --git a/plugins/modules/oneview_server_profile_template_facts.py b/plugins/modules/oneview_server_profile_template_facts.py index 19a316e8..164cb3e3 100644 --- a/plugins/modules/oneview_server_profile_template_facts.py +++ b/plugins/modules/oneview_server_profile_template_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -156,7 +156,7 @@ class ServerProfileTemplateFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec) + super().__init__(additional_arg_spec=self.argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.server_profile_templates) diff --git a/plugins/modules/oneview_storage_pool_facts.py b/plugins/modules/oneview_storage_pool_facts.py index 1d023394..154afee9 100644 --- a/plugins/modules/oneview_storage_pool_facts.py +++ b/plugins/modules/oneview_storage_pool_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -131,7 +131,7 @@ def __init__(self): params=dict(required=False, type='dict'), options=dict(required=False, type='list', elements='str') ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.storage_pools) def execute_module(self): diff --git a/plugins/modules/oneview_storage_system_facts.py b/plugins/modules/oneview_storage_system_facts.py index 82587dc8..b7eb72c2 100644 --- a/plugins/modules/oneview_storage_system_facts.py +++ b/plugins/modules/oneview_storage_system_facts.py @@ -1,6 +1,6 @@ #!/usr/bin/python ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -210,7 +210,8 @@ def __init__(self): storage_hostname=dict(type='str') ) - super().__init__(additional_arg_spec=argument_spec, validate_etag_support=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): diff --git a/plugins/modules/oneview_storage_volume_attachment_facts.py b/plugins/modules/oneview_storage_volume_attachment_facts.py index cd842b7e..78e8f3fc 100644 --- a/plugins/modules/oneview_storage_volume_attachment_facts.py +++ b/plugins/modules/oneview_storage_volume_attachment_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -204,7 +204,7 @@ def __init__(self): sessionID=dict(required=False, type='str'), params=dict(required=False, type='dict'), ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.storage_volume_attachments) resource_uri = self.oneview_client.storage_volume_attachments.URI diff --git a/plugins/modules/oneview_storage_volume_template_facts.py b/plugins/modules/oneview_storage_volume_template_facts.py index 0fda18b1..0f2fc1aa 100644 --- a/plugins/modules/oneview_storage_volume_template_facts.py +++ b/plugins/modules/oneview_storage_volume_template_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -164,7 +164,7 @@ def __init__(self): options=dict(required=False, type='list', elements='str'), params=dict(required=False, type='dict'), ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.storage_volume_templates) def execute_module(self): diff --git a/plugins/modules/oneview_task_facts.py b/plugins/modules/oneview_task_facts.py index 3a144dc3..35a3b79c 100644 --- a/plugins/modules/oneview_task_facts.py +++ b/plugins/modules/oneview_task_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2021) Hewlett Packard Enterprise Development LP +# Copyright (2021-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -120,7 +120,8 @@ class TaskFactsModule(OneViewModule): ) def __init__(self): - super().__init__(additional_arg_spec=self.argument_spec, validate_etag_support=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) diff --git a/plugins/modules/oneview_uplink_set_facts.py b/plugins/modules/oneview_uplink_set_facts.py index 372e96be..c5f15278 100644 --- a/plugins/modules/oneview_uplink_set_facts.py +++ b/plugins/modules/oneview_uplink_set_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -103,7 +103,7 @@ def __init__(self): params=dict(required=False, type='dict'), sessionID=dict(required=False, type='str'), ) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.uplink_sets) def execute_module(self): diff --git a/plugins/modules/oneview_user_facts.py b/plugins/modules/oneview_user_facts.py index f17b33d7..97ef47a7 100644 --- a/plugins/modules/oneview_user_facts.py +++ b/plugins/modules/oneview_user_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2021) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -140,7 +140,7 @@ def __init__(self): options=dict(required=False, type='list', elements='str') ) - super(UserFactsModule, self).__init__(additional_arg_spec=argument_spec) + super(UserFactsModule, self).__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.users) def execute_module(self): diff --git a/plugins/modules/oneview_version_facts.py b/plugins/modules/oneview_version_facts.py index 62cd2105..aed4908e 100644 --- a/plugins/modules/oneview_version_facts.py +++ b/plugins/modules/oneview_version_facts.py @@ -1,6 +1,6 @@ #!/usr/bin/python ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -64,7 +64,7 @@ class VersionFactsModule(OneViewModuleBase): def __init__(self): - super().__init__(additional_arg_spec=dict(sessionID=dict(required=False, type='str'))) + super().__init__(additional_arg_spec=dict(sessionID=dict(required=False, type='str')), supports_check_mode=True) def execute_module(self): version = self.oneview_client.versions.get_version() diff --git a/plugins/modules/oneview_volume_facts.py b/plugins/modules/oneview_volume_facts.py index 936a6190..5ccc5002 100644 --- a/plugins/modules/oneview_volume_facts.py +++ b/plugins/modules/oneview_volume_facts.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- ### -# Copyright (2016-2020) Hewlett Packard Enterprise Development LP +# Copyright (2016-2024) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. @@ -151,7 +151,7 @@ def __init__(self): sessionID=dict(required=False, type='str'), options=dict(type='list', elements='str'), params=dict(type='dict')) - super().__init__(additional_arg_spec=argument_spec) + super().__init__(additional_arg_spec=argument_spec, supports_check_mode=True) self.set_resource_object(self.oneview_client.volumes) def execute_module(self):