]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
Treat blueprint version as a string
authorAlex Brett <alex.brett@citrix.com>
Wed, 18 Nov 2015 13:57:04 +0000 (13:57 +0000)
committerAlex Brett <alex.brett@citrix.com>
Wed, 18 Nov 2015 13:57:04 +0000 (13:57 +0000)
exec/xenrt/lib/scalextreme/sxprocess.py

index 6287c4967cd0b6210fc8f6a6bcd334f3010ba4d0..2ceded64b56a91b451d2b2e8393de8509d0e1ff2 100644 (file)
@@ -32,7 +32,7 @@ class SXProcess(object):
         if not version:
             # Find the latest version
             versions = api.execute(category="process", sid=p['processId'], command="versions", method="GET")
-            p.__processVersion = max(map(lambda v: int(v['version']), versions))
+            p.__processVersion = str(max(map(lambda v: int(v['version']), versions)))
         if templateDeploymentProfile:
             # Find the id of this profile
             profiles = api.execute(category="deploymentprofile", command="list", method="POST", params={"processId": p['processId'], "processVersion": p['processVersion']})