mirror of
https://github.com/ansible/awx.git
synced 2026-03-24 20:35:02 -02:30
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.
This commit is contained in:
@@ -353,7 +353,7 @@ class BaseAccess(object):
|
|||||||
host_exists = Host.objects.filter(inventory__organization=org.id, name=add_host_name).exists()
|
host_exists = Host.objects.filter(inventory__organization=org.id, name=add_host_name).exists()
|
||||||
if not host_exists and active_count == org.max_hosts:
|
if not host_exists and active_count == org.max_hosts:
|
||||||
raise PermissionDenied(
|
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))
|
(org.max_hosts, active_count))
|
||||||
|
|
||||||
def get_user_capabilities(self, obj, method_list=[], parent_obj=None, capabilities_cache={}):
|
def get_user_capabilities(self, obj, method_list=[], parent_obj=None, capabilities_cache={}):
|
||||||
|
|||||||
Reference in New Issue
Block a user