diff --git a/HISTORY.rst b/HISTORY.rst index 770fae7..d837f1f 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,5 +1,9 @@ History ======= +0.9.17 (2025-03-28) +-------------------- +* Bug fixes + 0.9.16 (2025-03-05) -------------------- * Bug fixes and Bios updates diff --git a/imcsdk/__init__.py b/imcsdk/__init__.py index 888b9c5..e9a17d1 100644 --- a/imcsdk/__init__.py +++ b/imcsdk/__init__.py @@ -57,4 +57,4 @@ def set_log_level(level=logging.DEBUG): __author__ = 'Cisco Systems' __email__ = 'ucs-python@cisco.com' -__version__ = '0.9.16' +__version__ = '0.9.17' diff --git a/imcsdk/imchandle.py b/imcsdk/imchandle.py index 0152c39..18fb55e 100644 --- a/imcsdk/imchandle.py +++ b/imcsdk/imchandle.py @@ -742,8 +742,9 @@ def _get_mo_status(self, mo, operation, modify_present=True): # "Invalid request: adminAction and status are not expected in the same configConfMo request of commVMediaMap". # Keep the default status as "modified" for other admin actions. from imcsdk.mometa.comm.CommVMediaMap import CommVMediaMap, CommVMediaMapConsts - if all([isinstance(mo, CommVMediaMap), hasattr(mo, 'admin_action'), mo.admin_action == CommVMediaMapConsts.ADMIN_ACTION_SAVE_UNMAPPED_VOLUME]): - status = "" + if isinstance(mo, CommVMediaMap): + if hasattr(mo, 'admin_action') and mo.admin_action == CommVMediaMapConsts.ADMIN_ACTION_SAVE_UNMAPPED_VOLUME: + status = "" elif operation == "add": status = "created" if modify_present in imcgenutils.AFFIRMATIVE_LIST and self.query_dn(mo.dn) is not None: diff --git a/setup.cfg b/setup.cfg index 0a68cb2..e8d646c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.9.16 +current_version = 0.9.17 commit = False tag = False diff --git a/setup.py b/setup.py index 7c800c4..4d15de6 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup( name='imcsdk', - version='0.9.16', + version='0.9.17', description="python SDK for Cisco UCS IMC", long_description=readme + '\n\n' + history, long_description_content_type='text/x-rst',