mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
AC-581 group and inventory fields on inventory source are now readonly.
This commit is contained in:
@@ -643,6 +643,7 @@ class InventorySourceSerializer(BaseSerializer):
|
|||||||
'source_regions', 'source_tags', 'overwrite',
|
'source_regions', 'source_tags', 'overwrite',
|
||||||
'overwrite_vars', 'update_on_launch', 'update_interval',
|
'overwrite_vars', 'update_on_launch', 'update_interval',
|
||||||
'last_update_failed', 'status', 'last_updated')
|
'last_update_failed', 'status', 'last_updated')
|
||||||
|
read_only_fields = ('inventory', 'group')
|
||||||
|
|
||||||
def to_native(self, obj):
|
def to_native(self, obj):
|
||||||
ret = super(InventorySourceSerializer, self).to_native(obj)
|
ret = super(InventorySourceSerializer, self).to_native(obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user