]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
Use lockid to avoid vlan conflict
authorJohn Dilley <john.dilley@citrix.com>
Wed, 4 Nov 2015 18:08:27 +0000 (18:08 +0000)
committerJohn Dilley <john.dilley@citrix.com>
Wed, 4 Nov 2015 18:08:27 +0000 (18:08 +0000)
exec/xenrt/resources.py

index 8ccd3f3479a5e6ccef37af4b68bca8f190e16eba..0dd3c1586f582adeee23c51b54274d975b47fb33 100755 (executable)
@@ -379,7 +379,7 @@ class CentralResource(object):
 
     def acquire(self, id, shared=False):
         if shared:
-            self.id = id
+            self.lockid = id
             return
         d = xenrt.TEC().lookup("RESOURCE_LOCK_DIR")
         if not os.path.exists(d):
@@ -422,7 +422,7 @@ class CentralResource(object):
                 f.close()
         except:
             pass
-        self.id = id
+        self.lockid = id
 
     def _listProcess(self,id):
         d = xenrt.TEC().lookup("RESOURCE_LOCK_DIR")