mirror of
https://github.com/ansible/awx.git
synced 2024-10-26 07:55:24 +03:00
Merge 8ba47ef1f1
into e21dd0a093
This commit is contained in:
commit
1e93115514
@ -27,10 +27,21 @@ EXPORTABLE_RESOURCES = [
|
||||
'execution_environments',
|
||||
'applications',
|
||||
'schedules',
|
||||
'credential_input_sources',
|
||||
]
|
||||
|
||||
|
||||
EXPORTABLE_RELATIONS = ['Roles', 'NotificationTemplates', 'WorkflowJobTemplateNodes', 'Credentials', 'Hosts', 'Groups', 'ExecutionEnvironments', 'Schedules']
|
||||
EXPORTABLE_RELATIONS = [
|
||||
'Roles',
|
||||
'NotificationTemplates',
|
||||
'WorkflowJobTemplateNodes',
|
||||
'Credentials',
|
||||
'Hosts',
|
||||
'Groups',
|
||||
'ExecutionEnvironments',
|
||||
'Schedules',
|
||||
'CredentialInputSource',
|
||||
]
|
||||
|
||||
|
||||
# These are special-case related objects, where we want only in this
|
||||
@ -48,6 +59,7 @@ DEPENDENT_EXPORT = [
|
||||
('Inventory', 'Host'),
|
||||
('Inventory', 'Label'),
|
||||
('WorkflowJobTemplateNode', 'WorkflowApprovalTemplate'),
|
||||
('Credential', 'CredentialInputSource'),
|
||||
]
|
||||
|
||||
|
||||
|
@ -1,10 +1,13 @@
|
||||
from awxkit.api.resources import resources
|
||||
from awxkit.api.pages import Credential
|
||||
from awxkit.api.mixins import HasCreate
|
||||
from . import base
|
||||
from . import page
|
||||
|
||||
|
||||
class CredentialInputSource(base.Base):
|
||||
pass
|
||||
class CredentialInputSource(HasCreate, base.Base):
|
||||
dependencies = [Credential]
|
||||
NATURAL_KEY = ('target_credential', 'input_field_name')
|
||||
|
||||
|
||||
page.register_page(resources.credential_input_source, CredentialInputSource)
|
||||
|
Loading…
Reference in New Issue
Block a user