summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Server/Admin/Snapshots.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Admin/Snapshots.py b/src/lib/Server/Admin/Snapshots.py
index c7ea3a376..a68dec30d 100644
--- a/src/lib/Server/Admin/Snapshots.py
+++ b/src/lib/Server/Admin/Snapshots.py
@@ -99,6 +99,9 @@ class Snapshots(Bcfg2.Server.Admin.Mode):
padding=1)
elif '-b' in args[1:]:
# Query a single host for bad entries
+ if len(args) < 3:
+ print("Usage: bcfg2-admin snapshots -b <client>")
+ return
client = args[2]
snap = Snapshot.get_current(self.session, unicode(client))
if not snap: