From e3525fdbc39350dd4241320c0efb64b5a1b9bb60 Mon Sep 17 00:00:00 2001 From: adamscmRH Date: Mon, 31 Jul 2017 09:09:05 -0400 Subject: [PATCH] Changes Smart Inventory Error Message --- awx/api/templates/api/inventory_inventory_sources_update.md | 2 +- awx/api/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 046754b6a5..0551662f81 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -2495,7 +2495,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