From 875a1c0b5f23a57d2439d84cbb8cd13825007463 Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Tue, 12 Feb 2019 13:15:34 -0500 Subject: [PATCH] Remove the mention of the max_hosts value from the limit check messages --- awx/main/access.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/access.py b/awx/main/access.py index 89c55b5ee1..e688387753 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -342,12 +342,12 @@ class BaseAccess(object): active_count = Host.objects.org_active_count(org.id) if active_count > org.max_hosts: - raise PermissionDenied(_("Organization host limit of %s has been exceeded.") % org.max_hosts) + raise PermissionDenied(_("The organization host limit has been exceeded.")) if add_host_name: 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 reached.") % org.max_hosts) + raise PermissionDenied(_("The organization host limit has been exceeded.")) def get_user_capabilities(self, obj, method_list=[], parent_obj=None, capabilities_cache={}): if obj is None: