"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "manila/share/drivers/dell_emc/plugins/unity/client.py" between
manila-8.1.2.tar.gz and manila-8.1.3.tar.gz

About: OpenStack Manila provides “Shared Filesystems as a service”.
The "Stein" series (maintained release).

client.py  (manila-8.1.2):client.py  (manila-8.1.3)
skipping to change at line 277 skipping to change at line 277
host_ip = enas_utils.convert_ipv6_format_if_needed(host_ip) host_ip = enas_utils.convert_ipv6_format_if_needed(host_ip)
if access_level == const.ACCESS_LEVEL_RW: if access_level == const.ACCESS_LEVEL_RW:
share.allow_read_write_access(host_ip, force_create_host=True) share.allow_read_write_access(host_ip, force_create_host=True)
share.allow_root_access(host_ip, force_create_host=True) share.allow_root_access(host_ip, force_create_host=True)
else: else:
share.allow_read_only_access(host_ip, force_create_host=True) share.allow_read_only_access(host_ip, force_create_host=True)
def cifs_deny_access(self, share_name, user_name): def cifs_deny_access(self, share_name, user_name):
share = self.system.get_cifs_share(name=share_name) share = self.system.get_cifs_share(name=share_name)
share.delete_ace(user=user_name) try:
share.delete_ace(user=user_name)
except storops_ex.UnityAclUserNotFoundError:
LOG.debug('ACL User "%(user)s" does not exist.',
{'user': user_name})
def nfs_deny_access(self, share_name, host_ip): def nfs_deny_access(self, share_name, host_ip):
share = self.system.get_nfs_share(name=share_name) share = self.system.get_nfs_share(name=share_name)
try: try:
share.delete_access(host_ip) share.delete_access(host_ip)
except storops_ex.UnityHostNotFoundException: except storops_ex.UnityHostNotFoundException:
LOG.info('%(host)s access to %(share)s is already removed.', LOG.info('%(host)s access to %(share)s is already removed.',
{'host': host_ip, 'share': share_name}) {'host': host_ip, 'share': share_name})
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)