1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-26 07:55:24 +03:00

Compare commits

...

20 Commits

Author SHA1 Message Date
Neev Geffen
93d9aaed64
Merge 8ba47ef1f1 into 764dcbf94b 2024-10-21 21:37:44 +02:00
Neev Geffen
8ba47ef1f1
Merge branch 'ansible:devel' into devel 2024-08-30 11:34:11 +03:00
neevnuv
56b9806883 fix linting 2024-07-19 19:53:08 +00:00
neevnuv
87895f6b88 Merge branch 'devel' of https://github.com/neevnuv/awx into devel 2024-07-19 17:29:13 +00:00
Neev Geffen
ef861c66d1 add HasCreate 2024-07-19 20:27:56 +03:00
Neev Geffen
9a6692025c Remove unneccessery pass 2024-07-19 20:27:56 +03:00
neevnuv
74eaceadc3 add to credential_input EXPORTABLE_RESOURCES 2024-07-19 20:27:56 +03:00
neevnuv
281e1d0e2e adding credential_input_soucres 2024-07-19 20:27:56 +03:00
neevnuv
07054d0d99 Remove NATURAL_KEY and change to dependant nonexport 2024-07-19 20:27:56 +03:00
Neev Geffen
172cd68b66 remove metadata from natural key (#2) 2024-07-19 20:27:56 +03:00
Neev Geffen
541ef8ecee Awxkit add credential input sources output for credentials (#1)
* testing on credential_input_source output

* testing2

* change from usage of credential_input_source to related_input_source

* fix change

* Add natural key

* remove description from natural key
2024-07-19 20:27:56 +03:00
neevnuv
fe31c8f087 Add CredentialInputSource 2024-07-19 20:27:56 +03:00
Neev Geffen
6c1c33e47d add HasCreate 2024-06-13 15:13:58 +03:00
Neev Geffen
e1d3ff152e Remove unneccessery pass 2024-06-13 15:13:58 +03:00
neevnuv
1828a0090b add to credential_input EXPORTABLE_RESOURCES 2024-06-13 15:13:58 +03:00
neevnuv
597e9bf1b5 adding credential_input_soucres 2024-06-13 15:13:58 +03:00
neevnuv
be8d7819b8 Remove NATURAL_KEY and change to dependant nonexport 2024-06-13 15:13:58 +03:00
Neev Geffen
14f02f3979 remove metadata from natural key (#2) 2024-06-13 15:13:58 +03:00
Neev Geffen
f9d0dbe6da Awxkit add credential input sources output for credentials (#1)
* testing on credential_input_source output

* testing2

* change from usage of credential_input_source to related_input_source

* fix change

* Add natural key

* remove description from natural key
2024-06-13 15:13:58 +03:00
neevnuv
801c2fd2f3 Add CredentialInputSource 2024-06-13 15:13:58 +03:00
2 changed files with 18 additions and 3 deletions

View File

@ -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'),
]

View File

@ -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)