summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-11-09 17:48:54 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-11-09 17:48:54 +0100
commitc78de7953e0975ab3d12112fd359520df5219efa (patch)
tree102d3523636cd8a877a796f2f1178d68618c4734
parent5db47db82d0c62e0894253664ad98713b85f23c5 (diff)
json api: support -lh
-rwxr-xr-xbin/icli5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/icli b/bin/icli
index 58dd5f9..6ab9958 100755
--- a/bin/icli
+++ b/bin/icli
@@ -356,7 +356,10 @@ sub filter_host {
return 0;
}
- if ( $as_contact and not host_has_contact( $h, $as_contact ) ) {
+ if ( $as_contact
+ and not host_has_contact( $h, $as_contact )
+ and not $api1_root )
+ {
return 0;
}