From: Alex Brett Date: Wed, 18 Nov 2015 13:57:04 +0000 (+0000) Subject: Treat blueprint version as a string X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fc3b1d2e90d69af4231e890929a4f483d9676ebb;p=xenrt-citrix%2Fxenrt.git Treat blueprint version as a string --- diff --git a/exec/xenrt/lib/scalextreme/sxprocess.py b/exec/xenrt/lib/scalextreme/sxprocess.py index 6287c4967..2ceded64b 100644 --- a/exec/xenrt/lib/scalextreme/sxprocess.py +++ b/exec/xenrt/lib/scalextreme/sxprocess.py @@ -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']})