From fda942a5cc4c3fb69a3c2a1196a88067b1fd55a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Tomsa?= Date: Tue, 3 Dec 2024 14:58:33 +0100 Subject: [PATCH] chore: Remove artifacts of redeem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed what remained after removing the `redeem` command. Card IDs: * CCT-603 Signed-off-by: Štěpán Tomsa --- src/rhsm/connection.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/rhsm/connection.py b/src/rhsm/connection.py index 693fb81a0..93fb6ed02 100644 --- a/src/rhsm/connection.py +++ b/src/rhsm/connection.py @@ -2095,22 +2095,6 @@ def deleteContentOverrides(self, consumerId: str, params: List[dict] = None) -> params = [] return self.conn.request_delete(method, params, description=_("Removing content overrides")) - def activateMachine(self, consumerId: str, email: str, lang: str = None) -> Union[dict, None]: - """ - Activate a subscription by machine, information is located in the consumer facts - :param consumerId: consumer UUID - :param email: The email for sending notification. The notification will be sent by candlepin server - :param lang: The locale specifies the language of notification email - :return When activation was successful, then dictionary is returned. Otherwise, None is returned. - """ - method = "/subscriptions?consumer_uuid=%s" % consumerId - method += "&email=%s" % self.sanitize(email) - if (not lang) and (locale.getdefaultlocale()[0] is not None): - lang = locale.getdefaultlocale()[0].lower().replace("_", "-") - if lang: - method += "&email_locale=%s" % self.sanitize(lang) - return self.conn.request_post(method, description=_("Activating")) - # used by virt-who def getJob(self, job_id: str) -> str: """