mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-12 15:05:07 +00:00
* added supports_check_mode=True to info/facts modules
* added changelog fragment
* rolled back vertica_info
* rolled back utm_proxy_*_info
* updated changelog fragment with latest adjustments
* Update changelogs/fragments/3084-info-checkmode.yaml
Co-authored-by: Felix Fontein <felix@fontein.de>
* added check mode to xenserver_facts + oneview_*_info
* added check mode to utm_proxy_*_info
* updated changelog
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 7da2c16b4a)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
ad8cd8efb3
commit
35de2377f2
25 changed files with 85 additions and 25 deletions
|
|
@ -116,7 +116,10 @@ class DatacenterInfoModule(OneViewModuleBase):
|
|||
)
|
||||
|
||||
def __init__(self):
|
||||
super(DatacenterInfoModule, self).__init__(additional_arg_spec=self.argument_spec)
|
||||
super(DatacenterInfoModule, self).__init__(
|
||||
additional_arg_spec=self.argument_spec,
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
def execute_module(self):
|
||||
|
||||
|
|
|
|||
|
|
@ -163,7 +163,10 @@ class EnclosureInfoModule(OneViewModuleBase):
|
|||
)
|
||||
|
||||
def __init__(self):
|
||||
super(EnclosureInfoModule, self).__init__(additional_arg_spec=self.argument_spec)
|
||||
super(EnclosureInfoModule, self).__init__(
|
||||
additional_arg_spec=self.argument_spec,
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
def execute_module(self):
|
||||
|
||||
|
|
|
|||
|
|
@ -114,7 +114,10 @@ class EthernetNetworkInfoModule(OneViewModuleBase):
|
|||
)
|
||||
|
||||
def __init__(self):
|
||||
super(EthernetNetworkInfoModule, self).__init__(additional_arg_spec=self.argument_spec)
|
||||
super(EthernetNetworkInfoModule, self).__init__(
|
||||
additional_arg_spec=self.argument_spec,
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
self.resource_client = self.oneview_client.ethernet_networks
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,10 @@ class FcNetworkInfoModule(OneViewModuleBase):
|
|||
params=dict(required=False, type='dict')
|
||||
)
|
||||
|
||||
super(FcNetworkInfoModule, self).__init__(additional_arg_spec=argument_spec)
|
||||
super(FcNetworkInfoModule, self).__init__(
|
||||
additional_arg_spec=argument_spec,
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
def execute_module(self):
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,10 @@ class FcoeNetworkInfoModule(OneViewModuleBase):
|
|||
params=dict(type='dict'),
|
||||
)
|
||||
|
||||
super(FcoeNetworkInfoModule, self).__init__(additional_arg_spec=argument_spec)
|
||||
super(FcoeNetworkInfoModule, self).__init__(
|
||||
additional_arg_spec=argument_spec,
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
def execute_module(self):
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,10 @@ class LogicalInterconnectGroupInfoModule(OneViewModuleBase):
|
|||
params=dict(type='dict'),
|
||||
)
|
||||
|
||||
super(LogicalInterconnectGroupInfoModule, self).__init__(additional_arg_spec=argument_spec)
|
||||
super(LogicalInterconnectGroupInfoModule, self).__init__(
|
||||
additional_arg_spec=argument_spec,
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
def execute_module(self):
|
||||
if self.module.params.get('name'):
|
||||
|
|
|
|||
|
|
@ -135,7 +135,10 @@ class NetworkSetInfoModule(OneViewModuleBase):
|
|||
)
|
||||
|
||||
def __init__(self):
|
||||
super(NetworkSetInfoModule, self).__init__(additional_arg_spec=self.argument_spec)
|
||||
super(NetworkSetInfoModule, self).__init__(
|
||||
additional_arg_spec=self.argument_spec,
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
def execute_module(self):
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,10 @@ class SanManagerInfoModule(OneViewModuleBase):
|
|||
)
|
||||
|
||||
def __init__(self):
|
||||
super(SanManagerInfoModule, self).__init__(additional_arg_spec=self.argument_spec)
|
||||
super(SanManagerInfoModule, self).__init__(
|
||||
additional_arg_spec=self.argument_spec,
|
||||
supports_check_mode=True,
|
||||
)
|
||||
self.resource_client = self.oneview_client.san_managers
|
||||
|
||||
def execute_module(self):
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ def main():
|
|||
mutually_exclusive=[
|
||||
('username', 'auth_token'),
|
||||
],
|
||||
supports_check_mode=False
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
category = module.params['category']
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ def main():
|
|||
mutually_exclusive=[
|
||||
('username', 'auth_token'),
|
||||
],
|
||||
supports_check_mode=False
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
# admin credentials used for authentication
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue