mirror of
https://github.com/ansible/awx.git
synced 2026-07-29 08:59:55 -02:30
Adding initial credential and invsrc for Tower
* New credential type for Tower * Inventory source definitions and migrations for Tower * Initial Tower inventory source script
This commit is contained in:
@@ -873,6 +873,7 @@ class InventorySourceOptions(BaseModel):
|
||||
('cloudforms', _('Red Hat CloudForms')),
|
||||
('openstack', _('OpenStack')),
|
||||
('ovirt4', _('oVirt4')),
|
||||
('tower', _('Ansible Tower')),
|
||||
('custom', _('Custom Script')),
|
||||
]
|
||||
|
||||
@@ -1126,6 +1127,11 @@ class InventorySourceOptions(BaseModel):
|
||||
"""No region supprt"""
|
||||
return [('all', 'All')]
|
||||
|
||||
@classmethod
|
||||
def get_tower_region_choices(self):
|
||||
"""No region supprt"""
|
||||
return [('all', 'All')]
|
||||
|
||||
def clean_credential(self):
|
||||
if not self.source:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user