Skip to content

Commit

Permalink
don't put empty team name
Browse files Browse the repository at this point in the history
  • Loading branch information
vlimant committed Mar 23, 2017
1 parent 78e428b commit 2e28a57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reqMgrClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ def assignWorkflow(url, workflowname, team, parameters ):
return False
else:
defaults.pop('execute')
print "These are the parameters to be used"
print json.dumps( defaults ,indent=2)

res = setWorkflowAssignment(url, workflowname, defaults)
Expand Down Expand Up @@ -1208,7 +1209,7 @@ def reqmgr1_to_2_Assignment( params ):
if isinstance(value, basestring):
params[key] = value.strip()
if key.startswith("Team"):
teams.append(key[4:])
if key[4:]: teams.append(key[4:])
if key.startswith("checkbox"):
requestName = key[8:]
params["RequestName"] = requestName
Expand Down

0 comments on commit 2e28a57

Please sign in to comment.