mirror of
https://github.com/ansible/awx.git
synced 2024-10-26 07:55:24 +03:00
Compare commits
20 Commits
1e93115514
...
93d9aaed64
Author | SHA1 | Date | |
---|---|---|---|
|
93d9aaed64 | ||
|
8ba47ef1f1 | ||
|
56b9806883 | ||
|
87895f6b88 | ||
|
ef861c66d1 | ||
|
9a6692025c | ||
|
74eaceadc3 | ||
|
281e1d0e2e | ||
|
07054d0d99 | ||
|
172cd68b66 | ||
|
541ef8ecee | ||
|
fe31c8f087 | ||
|
6c1c33e47d | ||
|
e1d3ff152e | ||
|
1828a0090b | ||
|
597e9bf1b5 | ||
|
be8d7819b8 | ||
|
14f02f3979 | ||
|
f9d0dbe6da | ||
|
801c2fd2f3 |
@ -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