Skip to content

Commit eec2934

Browse files
authored
Bitbucket: Fix error in bitbucket cloud example (atlassian-api#656)
Replaces the parameter for the workspace request. The example tried to get the workspaces by the workspace name. According to the documentation they must be requested by the workspace slug. Workspace name and slug are often the same, but in case they are different, the example fails.
1 parent 8027adf commit eec2934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/bitbucket/bitbucket_cloud_oo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
break
1818

1919
print()
20-
w = cloud.workspaces.get(w.name)
20+
w = cloud.workspaces.get(w.slug)
2121
p = w.projects.get(p.key)
2222
print("Project key " + p.key)
2323
for r in p.repositories.each():

0 commit comments

Comments
 (0)