def set_host_attribute(attribute, value, **host_filter_data):
 assert host_filter_data
 hosts = models.Host.query_objects(host_filter_data)
 models.AclGroup.check_for_acl_violation_hosts(hosts)
 for host in hosts:
  host.set_or_delete_attribute(attribute, value)

def set_host_attribute ( attribute , value , ** host_filter_data ) : assert host_filter_data hosts = models . Host . query_objects ( host_filter_data ) models . AclGroup . check_for_acl_violation_hosts ( hosts ) for host in hosts : host . set_or_delete_attribute ( attribute , value )
set host attribute .