Skip to content

Commit

Permalink
Add disable plugin methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gonchik committed May 21, 2024
1 parent 743971b commit 5b1699c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion atlassian/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.41.12
3.41.13
6 changes: 3 additions & 3 deletions atlassian/bamboo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,8 +1285,8 @@ def upload_plugin(self, plugin_path):
).headers["upm-token"]
url = "rest/plugins/1.0/?token={upm_token}".format(upm_token=upm_token)
return self.post(url, files=files, headers=self.no_check_headers)
def disable_plugin(self,plugin_key):

def disable_plugin(self, plugin_key):
"""
Disable a plugin
:param plugin_key:
Expand All @@ -1300,7 +1300,7 @@ def disable_plugin(self,plugin_key):
data = {"status": "disabled"}
return self.put(url, data=data, headers=app_headers)

def enable_plugin(self,plugin_key):
def enable_plugin(self, plugin_key):
"""
Enable a plugin
:param plugin_key:
Expand Down
6 changes: 3 additions & 3 deletions atlassian/confluence.py
Original file line number Diff line number Diff line change
Expand Up @@ -2722,8 +2722,8 @@ def upload_plugin(self, plugin_path):
).headers["upm-token"]
url = "rest/plugins/1.0/?token={upm_token}".format(upm_token=upm_token)
return self.post(url, files=files, headers=self.no_check_headers)
def disable_plugin(self,plugin_key):

def disable_plugin(self, plugin_key):
"""
Disable a plugin
:param plugin_key:
Expand All @@ -2737,7 +2737,7 @@ def disable_plugin(self,plugin_key):
data = {"status": "disabled"}
return self.put(url, data=data, headers=app_headers)

def enable_plugin(self,plugin_key):
def enable_plugin(self, plugin_key):
"""
Enable a plugin
:param plugin_key:
Expand Down
6 changes: 3 additions & 3 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -3665,8 +3665,8 @@ def update_plugin_license(self, plugin_key, raw_license):
url = "/plugins/1.0/{plugin_key}/license".format(plugin_key=plugin_key)
data = {"rawLicense": raw_license}
return self.put(url, data=data, headers=app_headers)
def disable_plugin(self,plugin_key):

def disable_plugin(self, plugin_key):
"""
Disable a plugin
:param plugin_key:
Expand All @@ -3680,7 +3680,7 @@ def disable_plugin(self,plugin_key):
data = {"status": "disabled"}
return self.put(url, data=data, headers=app_headers)

def enable_plugin(self,plugin_key):
def enable_plugin(self, plugin_key):
"""
Enable a plugin
:param plugin_key:
Expand Down

0 comments on commit 5b1699c

Please sign in to comment.