From: Alex Brett Date: Wed, 18 Nov 2015 14:52:28 +0000 (+0000) Subject: Fix deployment X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=87c8eb38fd6d7d3451ef33f9cc779bdeaafae217;p=xenrt-citrix%2Fxenrt.git Fix deployment --- diff --git a/exec/xenrt/lib/scalextreme/sxprocess.py b/exec/xenrt/lib/scalextreme/sxprocess.py index 2ceded64b..b9530ca4c 100644 --- a/exec/xenrt/lib/scalextreme/sxprocess.py +++ b/exec/xenrt/lib/scalextreme/sxprocess.py @@ -31,11 +31,11 @@ class SXProcess(object): p.__processId = b['processId'] if not version: # Find the latest version - versions = api.execute(category="process", sid=p['processId'], command="versions", method="GET") + versions = api.execute(category="process", sid=p.processId, command="versions", method="GET") 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']}) + profiles = api.execute(category="deploymentprofile", command="list", method="POST", params={"processId": p.processId, "processVersion": p.processVersion}) matchedProfiles = filter(lambda dp: dp['deploymentProfileName'] == templateDeploymentProfile, profiles) if len(matchedProfiles) != 1: raise xenrt.XRTError("Found %d matching deployment profiles (expected 1)" % len(matchedProfiles))