mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update tasks to return previous behavior output for single manager
node types and expanded output for multi-manager node types
This commit is contained in:
parent
3cd5310ae4
commit
6c498599b1
2 changed files with 10 additions and 4 deletions
|
@ -1,2 +1,2 @@
|
|||
breaking_changes:
|
||||
- redfish_info - modify ``GetLogs`` and ``GetNetworkProtocols`` commands to support multi-manager node types. These commands will return a list of dictionaries similar to the ``GetManagerInventory`` and ``GetSystemInventory`` commands instead of a single dictionary (https://github.com/ansible-collections/community.general/issues/6764).
|
||||
minor_changes:
|
||||
- redfish_info - modify ``GetLogs`` and ``GetNetworkProtocols`` commands to support multi-manager node types. These commands will return a list of dictionaries similar to the ``GetManagerInventory`` and ``GetSystemInventory`` commands instead of a single dictionary when multiple managers are present, otherwise existing output is unchanged (https://github.com/ansible-collections/community.general/issues/6764).
|
||||
|
|
|
@ -625,7 +625,10 @@ class RedfishUtils(object):
|
|||
return allowable_values
|
||||
|
||||
def get_multi_logs(self):
|
||||
return self.aggregate_managers(self.get_logs)
|
||||
if len(self.manager_uris) > 1:
|
||||
return self.aggregate_managers(self.get_logs)
|
||||
else:
|
||||
return self.get_logs(self.manager_uri)
|
||||
|
||||
def get_logs(self, manager_uri):
|
||||
log_svcs_uri_list = []
|
||||
|
@ -2987,7 +2990,10 @@ class RedfishUtils(object):
|
|||
return self.aggregate_systems(self.get_system_inventory)
|
||||
|
||||
def get_multi_network_protocols(self):
|
||||
return self.aggregate_managers(self.get_network_protocols)
|
||||
if len(self.manager_uris) > 1:
|
||||
return self.aggregate_managers(self.get_network_protocols)
|
||||
else:
|
||||
return self.get_network_protocols(self.manager_uri)
|
||||
|
||||
def get_network_protocols(self, manager_uri):
|
||||
result = {}
|
||||
|
|
Loading…
Reference in a new issue