diff --git a/awx/api/templates/api/inventory_inventory_sources_update.md b/awx/api/templates/api/inventory_inventory_sources_update.md index f0f6d338d8..709b53afbf 100644 --- a/awx/api/templates/api/inventory_inventory_sources_update.md +++ b/awx/api/templates/api/inventory_inventory_sources_update.md @@ -20,7 +20,7 @@ inventory sources: * `project_update`: ID of the project update job that was started if this inventory source is an SCM source. (interger, read-only, optional) -Note: All manual inventory sources (source=' ') will be ignored by the update_inventory_sources endpoint. This endpoint will not update inventory sources for Smart Inventories. +Note: All manual inventory sources (source="") will be ignored by the update_inventory_sources endpoint. This endpoint will not update inventory sources for Smart Inventories. Response code from this action will be: diff --git a/awx/api/views.py b/awx/api/views.py index 469c491d75..be4d0db14c 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -2511,7 +2511,7 @@ class InventoryInventorySourcesUpdate(RetrieveAPIView): successes = 0 failures = 0 if inventory.kind =='smart': - return Response(dict(error=_("Action cannot be completed with Smart Inventory.")), status=status.HTTP_400_BAD_REQUEST) + return Response(dict(error=_("Inventory update cannot be completed with Smart Inventory.")), status=status.HTTP_400_BAD_REQUEST) for inventory_source in inventory.inventory_sources.exclude(source=''): details = {'inventory_source': inventory_source.pk, 'status': None} can_update = inventory_source.can_update