mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-06 16:32:01 -05:00
Merge pull request #137 from matburt/openstack_inventory_support
Openstack inventory support
This commit is contained in:
@@ -740,6 +740,7 @@ class InventorySourceOptions(BaseModel):
|
||||
('gce', _('Google Compute Engine')),
|
||||
('azure', _('Microsoft Azure')),
|
||||
('vmware', _('VMware vCenter')),
|
||||
('openstack', _('Openstack')),
|
||||
('custom', _('Custom Script')),
|
||||
]
|
||||
|
||||
@@ -963,6 +964,11 @@ class InventorySourceOptions(BaseModel):
|
||||
"""
|
||||
return [('all', 'All')]
|
||||
|
||||
@classmethod
|
||||
def get_openstack_region_choices(self):
|
||||
"""I don't think openstack has regions"""
|
||||
return [('all', 'All')]
|
||||
|
||||
def clean_credential(self):
|
||||
if not self.source:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user