summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/hostinfo2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hostinfo b/bin/hostinfo
index ced856a..4a48e2b 100755
--- a/bin/hostinfo
+++ b/bin/hostinfo
@@ -96,7 +96,7 @@ def print_search(basepath, flags, search, filter_key=None):
continue
p = printer.Printer(data, flags)
- if filter_key is not None flags.details:
+ if filter_key is not None or flags.details:
p.info(filter_key, label=_get_label(host), maxlength=max(length))
else:
if key is None: