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: """