Skip to content

Commit

Permalink
Fixed template ID after folder feature in XLR was introduced. With fo…
Browse files Browse the repository at this point in the history
…lders the templateID looks like Applications/folder1/../folderN/ReleaseM. Only Application/ must be removed, while keeping the folder structure
  • Loading branch information
Peter Willemse authored and Peter Willemse committed Nov 6, 2017
1 parent c8cb7de commit ea81b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/xlr/CreateAndStartSubRelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def process_variables(variables, updatable_variables):
if releaseDescription is None:
releaseDescription = ""

release_id = xlr_client.create_release(releaseTitle, releaseDescription, vars, repr(template.tags).replace("'",'"'), template.id.split("/")[1])
release_id = xlr_client.create_release(releaseTitle, releaseDescription, vars, repr(template.tags).replace("'",'"'), template.id.split("/", 1)[1])

# Start Release
xlr_client.start_release(release_id)
Expand Down

0 comments on commit ea81b77

Please sign in to comment.