re-added shared check

This commit is contained in:
Adolfo Gómez García 2020-04-16 21:20:39 +02:00
parent 1c6d58a53d
commit 40a820e770

View File

@ -255,8 +255,8 @@ class XenServer: # pylint: disable=too-many-public-methods
for srId in self.SR.get_all(): for srId in self.SR.get_all():
# Only valid SR shared, non iso # Only valid SR shared, non iso
name_label = self.SR.get_name_label(srId) name_label = self.SR.get_name_label(srId)
if self.SR.get_content_type(srId) == 'iso' or name_label == '': # Skip non valid...
# self.SR.get_shared(srId) is False or \ if self.SR.get_content_type(srId) == 'iso' or self.SR.get_shared(srId) is False or name_label == '':
continue continue
if not self.SR.get_shared(srId): if not self.SR.get_shared(srId):