diff --git a/awx/api/views/inventory.py b/awx/api/views/inventory.py index dfa3f6627a..987f5467b4 100644 --- a/awx/api/views/inventory.py +++ b/awx/api/views/inventory.py @@ -70,12 +70,16 @@ class InventoryUpdateEventsList(SubListAPIView): class InventoryScriptList(ListCreateAPIView): + deprecated = True + model = CustomInventoryScript serializer_class = CustomInventoryScriptSerializer class InventoryScriptDetail(RetrieveUpdateDestroyAPIView): + deprecated = True + model = CustomInventoryScript serializer_class = CustomInventoryScriptSerializer @@ -92,6 +96,8 @@ class InventoryScriptDetail(RetrieveUpdateDestroyAPIView): class InventoryScriptObjectRolesList(SubListAPIView): + deprecated = True + model = Role serializer_class = RoleSerializer parent_model = CustomInventoryScript @@ -105,6 +111,8 @@ class InventoryScriptObjectRolesList(SubListAPIView): class InventoryScriptCopy(CopyAPIView): + deprecated = True + model = CustomInventoryScript copy_return_serializer_class = CustomInventoryScriptSerializer