summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2010-11-02 13:03:05 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2010-11-02 13:12:42 -0500
commitb7ebe51fbd178e0e20b009cfe4f9d4a7fd352aed (patch)
tree654ec0c588931d0017f6c1d7439a7b960e824366
parentd1527d8991bff83a3d6ba18e3de258993722f459 (diff)
downloadbcfg2-b7ebe51fbd178e0e20b009cfe4f9d4a7fd352aed.tar.gz
bcfg2-b7ebe51fbd178e0e20b009cfe4f9d4a7fd352aed.tar.bz2
bcfg2-b7ebe51fbd178e0e20b009cfe4f9d4a7fd352aed.zip
bcfg2-info: showentries matches argument length incorrectly
(cherry picked from commit d7ce5d6926dffab8c167d41f4068d0f71c9beda7)
-rwxr-xr-xsrc/sbin/bcfg2-info2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 6732d8830..9721122f3 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -303,7 +303,7 @@ class infoCore(cmd.Cmd, Bcfg2.Server.Core.Core):
def do_showentries(self, args):
"""Show abstract configuration entries for a given host."""
arglen = len(args.split())
- if arglen not in [2, 3]:
+ if arglen not in [1, 2]:
print("Usage: showentries <hostname> <type>")
return
client = args.split()[0]