emc-openstack / storops

Python storage management library for VNX and Unity.
Apache License 2.0
53 stars 29 forks source link

Unable to remove filesystem's description #332

Closed v-soni11 closed 3 years ago

v-soni11 commented 4 years ago

Issue: Unable to remove filesystem's description by providing empty string

steps to reproduce:

>>> from storops.unity.resource import nfs_share
>>> from storops import UnitySystem
>>>
>>> conn = UnitySystem('xx.xx.xx.xx', 'username', 'password', verify=False)
>>>
>>> nas_obj = conn.get_nas_server(name="nas_server")

>>> fs = conn.get_filesystem(name="vvk_fs", nas_server=nas_obj)
>>> fs.description
'test'
>>> fs.modify(description='')
<storops.unity.resp.RestResponse object at 0x7f8d78cb1278>
>>> fs = conn.get_filesystem(name="vvk_fs", nas_server=nas_obj)
>>> fs.description # should be empty '' instead of 'test'
'test'
yong-huang commented 3 years ago

Root caused, will fix it.

yong-huang commented 3 years ago

Fixed in https://github.com/emc-openstack/storops/pull/335

v-soni11 commented 3 years ago

Verified. Its Fixed Now