]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
Allow unsetting aclid
authorAlex Brett <alex.brett@citrix.com>
Mon, 12 Oct 2015 08:43:34 +0000 (09:43 +0100)
committerAlex Brett <alex.brett@citrix.com>
Mon, 12 Oct 2015 08:43:47 +0000 (09:43 +0100)
server/app/apiv2/machines.py

index acba0845a45be51c36cd0a75b9bd704f55156189..191a94abadc1278d543264b0eb00abc8506e4ccc 100644 (file)
@@ -246,6 +246,9 @@ class _MachineBase(XenRTAPIv2Page):
         elif key.lower() == "group":
             key = "mgroup"
 
+        if key.lower() == "aclid" and value == "":
+            value = None
+
         details = machines[machine]['params']
         if key.lower() in ("machine", "comment", "leaseto", "leasereason", "leasefrom"):
             raise XenRTAPIError(HTTPForbidden, "Can't update this field")