def acl_group_add_hosts(id, hosts):
 group = models.AclGroup.smart_get(id)
 group.check_for_acl_violation_acl_group()
 hosts = models.Host.smart_get_bulk(hosts)
 group.hosts.add(*hosts)
 group.on_host_membership_change()

def acl_group_add_hosts ( id , hosts ) : group = models . AclGroup . smart_get ( id ) group . check_for_acl_violation_acl_group ( ) hosts = models . Host . smart_get_bulk ( hosts ) group . hosts . add ( * hosts ) group . on_host_membership_change ( )
add hosts to an acl group .