Commit 1169431d authored by Antoine Millet's avatar Antoine Millet
Browse files

Added an allocator flag to ignore alloc tag

parent acbcf2a9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -81,7 +81,10 @@ class IsAllocatable(Filter):
    """

    def tql_filter(self, query):
        if 'ignore_alloc' not in self.vmspec.get('flags', []):
            return '(%s)&alloc=yes' % query
        else:
            return query


class IsConnected(Filter):