mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 22:46:01 -03:30
reimplement licensing to work with RHSM and entitlement uploads
Co-authored-by: Christian Adams <chadams@redhat.com>
This commit is contained in:
@@ -7,5 +7,8 @@ class Subscriptions(page.Page):
|
||||
def get_possible_licenses(self, **kwargs):
|
||||
return self.post(json=kwargs).json
|
||||
|
||||
def attach(self, **kwargs):
|
||||
return self.connection.post(resources.subscriptions_attach, json=kwargs).json
|
||||
|
||||
|
||||
page.register_page(resources.subscriptions, Subscriptions)
|
||||
|
||||
@@ -267,6 +267,7 @@ class Resources(object):
|
||||
_workflow_job_templates = 'workflow_job_templates/'
|
||||
_workflow_job_workflow_nodes = r'workflow_jobs/\d+/workflow_nodes/'
|
||||
_subscriptions = 'config/subscriptions/'
|
||||
_subscriptions_attach = 'config/attach/'
|
||||
_workflow_jobs = 'workflow_jobs/'
|
||||
api = '/api/'
|
||||
common = api + r'v\d+/'
|
||||
|
||||
Reference in New Issue
Block a user