Check for invalid XID

This commit is contained in:
Marek Marczykowski 2013-05-10 05:22:57 +02:00 committed by Marek Marczykowski-Górecki
parent 895ca0633d
commit 1fda0502ab

View File

@ -907,6 +907,8 @@ class QubesVm(object):
if xid is None:
xid = self.xid
assert xid >= 0, "Invalid XID value"
domain_path = xs.get_domain_path(xid)
# Set Xen Store entires with VM networking info: