mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-23 08:21:49 -05:00
cli: fix a few bugs related to required OPTIONS
see: https://github.com/ansible/awx/issues/4581 see: https://github.com/ansible/awx/issues/4583 see: https://github.com/ansible/awx/issues/4560
This commit is contained in:
@@ -1990,6 +1990,9 @@ class InventorySourceSerializer(UnifiedJobTemplateSerializer, InventorySourceOpt
|
||||
fields = ('*', 'name', 'inventory', 'update_on_launch', 'update_cache_timeout',
|
||||
'source_project', 'update_on_project_update') + \
|
||||
('last_update_failed', 'last_updated') # Backwards compatibility.
|
||||
extra_kwargs = {
|
||||
'inventory': {'required': True}
|
||||
}
|
||||
|
||||
def get_related(self, obj):
|
||||
res = super(InventorySourceSerializer, self).get_related(obj)
|
||||
|
||||
Reference in New Issue
Block a user