node_filter = Filter(Node.fields, {'node_id': ints, 'hostname': strs})
sql += " AND (%s) %s" % node_filter.sql(api, "OR")
elif isinstance(node_filter, dict):
- node_filter = Filter(Node.fields, node_filter)
+ allowed_fields=dict(Node.fields.items()+Node.tags.items())
+ node_filter = Filter(allowed_fields, node_filter)
sql += " AND (%s) %s" % node_filter.sql(api, "AND")
elif isinstance (node_filter, StringTypes):
node_filter = Filter(Node.fields, {'hostname':[node_filter]})
result.append(rejected)
return result
- # compute the accepts part of an update method from a list of column names, and a (list of) field dict
+ # compute the accepts part of an update method from a list of column names, and a (list of) fields dict
@staticmethod
def accepted_fields (can_update_columns, fields):
result={}