mirror of
https://github.com/ansible/awx.git
synced 2026-07-28 16:39:56 -02:30
Separate page object for config/attach endpoint
This commit is contained in:
committed by
Ryan Petrello
parent
422c7308fd
commit
aae0b29008
@@ -36,4 +36,11 @@ class Config(base.Base):
|
||||
return [k for k, v in self.license_info.get('features', {}).items() if v]
|
||||
|
||||
|
||||
class ConfigAttach(page.Page):
|
||||
|
||||
def attach(self, **kwargs):
|
||||
return self.post(json=kwargs).json
|
||||
|
||||
|
||||
page.register_page(resources.config, Config)
|
||||
page.register_page(resources.config_attach, ConfigAttach)
|
||||
|
||||
@@ -7,8 +7,5 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user