Skip to content

Commit 68a32e0

Browse files
committed
Bump version and adjust black warning
1 parent 50310b2 commit 68a32e0

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

atlassian/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.25.0
1+
3.26.0

atlassian/bitbucket/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ def repo_users_with_administrator_permissions(self, project_key, repo_key):
10121012
for user in self.project_users_with_administrator_permissions(project_key):
10131013
repo_administrators.append(user)
10141014
# We convert to a set to ensure uniqueness then back to a list for later useability
1015-
return list({user['id']: user for user in repo_administrators}.values())
1015+
return list({user["id"]: user for user in repo_administrators}.values())
10161016

10171017
def repo_groups_with_administrator_permissions(self, project_key, repo_key):
10181018
"""
@@ -1024,7 +1024,7 @@ def repo_groups_with_administrator_permissions(self, project_key, repo_key):
10241024
repo_group_administrators = []
10251025
for group in self.repo_groups(project_key, repo_key):
10261026
if group["permission"] == "REPO_ADMIN":
1027-
repo_group_administrators.append(group['group']['name'])
1027+
repo_group_administrators.append(group["group"]["name"])
10281028
for group in self.project_groups_with_administrator_permissions(project_key):
10291029
repo_group_administrators.append(group)
10301030
# We convert to a set to ensure uniqueness, then back to a list for later useability

atlassian/jira.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,10 +785,10 @@ def remove_user_from_group(self, username, group_name):
785785
params = {"groupname": group_name, "username": username}
786786

787787
return self.delete(url, params=params)
788-
789-
790-
def get_users_with_browse_permission_to_a_project(self, username, issue_key=None, project_key=None,
791-
start=0, limit=100):
788+
789+
def get_users_with_browse_permission_to_a_project(
790+
self, username, issue_key=None, project_key=None, start=0, limit=100
791+
):
792792
"""
793793
Returns a list of active users that match the search string. This resource cannot be accessed anonymously
794794
and requires the Browse Users global permission. Given an issue key this resource will provide a list of users
@@ -816,7 +816,6 @@ def get_users_with_browse_permission_to_a_project(self, username, issue_key=None
816816

817817
return self.get(url, params=params)
818818

819-
820819
"""
821820
Issue
822821
Reference: https://docs.atlassian.com/software/jira/docs/api/REST/8.5.0/#api/2/issue
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# coding=utf-8
22
from atlassian import Jira
3+
34
"""Remove stale nodes from cluster before version 8.10
45
See https://confluence.atlassian.com/jirakb/remove-abandoned-or-offline-nodes-in-jira-data-center-946616137.html
56
"""
67
jira = Jira(url="http://localhost:8080", username="admin", password="admin")
7-
stale_node_ids = [_ ["nodeId"] for _ in jira.get_cluster_all_nodes() if not _["alive"] and _["state"] == "OFFLINE"]
8-
for _ in stale_node_ids: jira.delete_cluster_node(_)
8+
stale_node_ids = [_["nodeId"] for _ in jira.get_cluster_all_nodes() if not _["alive"] and _["state"] == "OFFLINE"]
9+
for _ in stale_node_ids:
10+
jira.delete_cluster_node(_)

0 commit comments

Comments
 (0)