From 7eba55fbded3b91885c2e50b22e5a196acd1b206 Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Thu, 21 Feb 2019 11:41:55 -0500 Subject: [PATCH] Change the wording of the error when adding a host to "Organization host limit of %s would be exceeded...", since the host will probably not actually be made active. --- awx/main/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/access.py b/awx/main/access.py index e895986906..18ea0a1516 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -353,7 +353,7 @@ class BaseAccess(object): host_exists = Host.objects.filter(inventory__organization=org.id, name=add_host_name).exists() if not host_exists and active_count == org.max_hosts: raise PermissionDenied( - _("Organization host limit of %s has been exceeded, %s hosts active.") % + _("Organization host limit of %s would be exceeded, %s hosts active.") % (org.max_hosts, active_count)) def get_user_capabilities(self, obj, method_list=[], parent_obj=None, capabilities_cache={}):