Skip to content

Commit

Permalink
chore: Remove artifacts of redeem
Browse files Browse the repository at this point in the history
Removed what remained after removing the `redeem` command.

Card IDs:
* CCT-603

Signed-off-by: Štěpán Tomsa <[email protected]>
  • Loading branch information
Glutexo committed Dec 3, 2024
1 parent 8c3400b commit fda942a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/rhsm/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit fda942a

Please sign in to comment.