support ovirt4 as a built-in inventory source

see: https://github.com/ansible/ansible-tower/issues/6522
This commit is contained in:
Ryan Petrello
2017-09-22 15:16:15 -04:00
committed by Matthew Jones
parent 4510cd11db
commit 74f2509482
11 changed files with 394 additions and 3 deletions

View File

@@ -872,6 +872,7 @@ class InventorySourceOptions(BaseModel):
('satellite6', _('Red Hat Satellite 6')),
('cloudforms', _('Red Hat CloudForms')),
('openstack', _('OpenStack')),
('ovirt4', _('oVirt4')),
('custom', _('Custom Script')),
]
@@ -1120,6 +1121,11 @@ class InventorySourceOptions(BaseModel):
"""Red Hat CloudForms region choices (not implemented)"""
return [('all', 'All')]
@classmethod
def get_ovirt4_region_choices(self):
"""No region supprt"""
return [('all', 'All')]
def clean_credential(self):
if not self.source:
return None