From 87b7a39a6f4f4edde69e1ddb2a33c5e0f9e1a911 Mon Sep 17 00:00:00 2001 From: Britt Houser Date: Wed, 25 Mar 2020 11:31:05 -0400 Subject: [PATCH] Remove mnt_state from vmedia_mount_state The mnt_state in vmedia_mount_state has gotten out of date and doesn not handle the mount-ejected-by-os state and so throws a ValueError. Also, thus function does not need to spit out its own debug logs. --- ucsmsdk_samples/server/vmedia.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ucsmsdk_samples/server/vmedia.py b/ucsmsdk_samples/server/vmedia.py index 39dcea2..07732b1 100755 --- a/ucsmsdk_samples/server/vmedia.py +++ b/ucsmsdk_samples/server/vmedia.py @@ -295,19 +295,4 @@ def vmedia_mount_state(handle, sp_dn): if not mount_entries: raise ValueError("Vmedia Mount Entries do not exist.") - mnt_state = { - "unknown": "Mapping is not present", - "not-mounted": "Mapping is not present", - "unmounting": "Unmounting in progress", - "mounting": "Mounting in progress", - "mounted": "Mounted successfully", - "mount-failed": "Mounting failed", - } - for mount_entry in mount_entries: - log.debug("name:%s, type:%s, status:%s, description:%s" % ( - mount_entry.mapping_name, - mount_entry.device_type, - mount_entry.oper_mount_status, - mnt_state[mount_entry.oper_mount_status], - )) return mount_entries