mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
[PR #9190/ab095948 backport][stable-10] redfish_utils module utils: remove redundant code (#9216)
redfish_utils module utils: remove redundant code (#9190)
deprecate method instead
(cherry picked from commit ab0959480e)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
4
changelogs/fragments/9190-redfish-utils-unused-code.yml
Normal file
4
changelogs/fragments/9190-redfish-utils-unused-code.yml
Normal 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).
|
||||||
@@ -55,7 +55,6 @@ class RedfishUtils(object):
|
|||||||
self.strip_etag_quotes = strip_etag_quotes
|
self.strip_etag_quotes = strip_etag_quotes
|
||||||
self.ciphers = ciphers
|
self.ciphers = ciphers
|
||||||
self._vendor = None
|
self._vendor = None
|
||||||
self._init_session()
|
|
||||||
|
|
||||||
def _auth_params(self, headers):
|
def _auth_params(self, headers):
|
||||||
"""
|
"""
|
||||||
@@ -411,7 +410,7 @@ class RedfishUtils(object):
|
|||||||
return msg, data
|
return msg, data
|
||||||
|
|
||||||
def _init_session(self):
|
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):
|
def _get_vendor(self):
|
||||||
# If we got the vendor info once, don't get it again
|
# If we got the vendor info once, don't get it again
|
||||||
|
|||||||
Reference in New Issue
Block a user