From 5b1699c69fa8b91e0265e68ab3bd4f96c74baf50 Mon Sep 17 00:00:00 2001 From: Gonchik Tsymzhitov Date: Tue, 21 May 2024 15:30:29 +0300 Subject: [PATCH] Add disable plugin methods --- atlassian/VERSION | 2 +- atlassian/bamboo.py | 6 +++--- atlassian/confluence.py | 6 +++--- atlassian/jira.py | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/atlassian/VERSION b/atlassian/VERSION index f78008e28..d17731cc5 100644 --- a/atlassian/VERSION +++ b/atlassian/VERSION @@ -1 +1 @@ -3.41.12 +3.41.13 diff --git a/atlassian/bamboo.py b/atlassian/bamboo.py index 9c4f2bddd..ff7e86669 100755 --- a/atlassian/bamboo.py +++ b/atlassian/bamboo.py @@ -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: @@ -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: diff --git a/atlassian/confluence.py b/atlassian/confluence.py index 066b37880..7c5987392 100644 --- a/atlassian/confluence.py +++ b/atlassian/confluence.py @@ -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: @@ -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: diff --git a/atlassian/jira.py b/atlassian/jira.py index 5b81eec1e..78f893654 100644 --- a/atlassian/jira.py +++ b/atlassian/jira.py @@ -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: @@ -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: