summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Server/Admin/Query.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Admin/Query.py b/src/lib/Server/Admin/Query.py
index 759e542b6..76f15948b 100644
--- a/src/lib/Server/Admin/Query.py
+++ b/src/lib/Server/Admin/Query.py
@@ -54,6 +54,9 @@ class Query(Bcfg2.Server.Admin.Mode):
nc = self.meta.GetClientByProfile(v)
elif k == 'g':
nc = self.meta.GetClientByGroup(v)
+ else:
+ print "One of g= or p= must be specified"
+ raise SystemExit(1)
clients = [c for c in clients if c in nc]
if '-n' in args:
for client in clients: