Commit 37c3bf16 authored by Sigmund Augdal's avatar Sigmund Augdal

Only check enabled host with kind

parent 5c25b2d1
...@@ -169,7 +169,8 @@ def query_kind(session, var, query): ...@@ -169,7 +169,8 @@ def query_kind(session, var, query):
def check_kind(args): def check_kind(args):
session = requests.Session() session = requests.Session()
hosts = invoke('host.get', selectMacros=['macro', 'value'], hosts = invoke('host.get', selectMacros=['macro', 'value'],
selectGroups=['name']) selectGroups=['name'],
filter={'status': 0})
statuses = defaultdict(list) statuses = defaultdict(list)
groupstatuses = defaultdict(lambda: defaultdict(list)) groupstatuses = defaultdict(lambda: defaultdict(list))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment