From 40a820e77061f5726609acecf492320d189d0a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 16 Apr 2020 21:20:39 +0200 Subject: [PATCH] re-added shared check --- server/src/uds/services/Xen/xen_client/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/uds/services/Xen/xen_client/__init__.py b/server/src/uds/services/Xen/xen_client/__init__.py index 4bf68c84..4e901044 100644 --- a/server/src/uds/services/Xen/xen_client/__init__.py +++ b/server/src/uds/services/Xen/xen_client/__init__.py @@ -255,8 +255,8 @@ class XenServer: # pylint: disable=too-many-public-methods for srId in self.SR.get_all(): # Only valid SR shared, non iso name_label = self.SR.get_name_label(srId) - if self.SR.get_content_type(srId) == 'iso' or name_label == '': - # self.SR.get_shared(srId) is False or \ + # Skip non valid... + if self.SR.get_content_type(srId) == 'iso' or self.SR.get_shared(srId) is False or name_label == '': continue if not self.SR.get_shared(srId):