redfish_utils module utils: remove redundant code (#9190)

deprecate method instead
pull/9223/head
Alexei Znamensky 2024-12-03 08:17:44 +13:00 committed by GitHub
parent fddccea940
commit ab0959480e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,4 @@
minor_changes:
- redfish_utils module utils - remove redundant code (https://github.com/ansible-collections/community.general/pull/9190).
deprecated_features:
- redfish_utils module utils - deprecate method ``RedfishUtils._init_session()`` (https://github.com/ansible-collections/community.general/pull/9190).

View File

@ -55,7 +55,6 @@ class RedfishUtils(object):
self.strip_etag_quotes = strip_etag_quotes
self.ciphers = ciphers
self._vendor = None
self._init_session()
def _auth_params(self, headers):
"""
@ -411,7 +410,7 @@ class RedfishUtils(object):
return msg, data
def _init_session(self):
pass
self.module.deprecate("Method _init_session is deprecated and will be removed.", version="11.0.0", collection_name="community.general")
def _get_vendor(self):
# If we got the vendor info once, don't get it again