summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-06-04 10:52:40 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-06-04 10:52:40 -0500
commitf4bb86dee4e578d761d3161db30cd55b22c4142d (patch)
tree406cd78ee9f29a58e2a0264914b38f98ccc8c065
parentdbb3146b3270363f76e0f6ba1ad9751ff359091c (diff)
downloadbcfg2-f4bb86dee4e578d761d3161db30cd55b22c4142d.tar.gz
bcfg2-f4bb86dee4e578d761d3161db30cd55b22c4142d.tar.bz2
bcfg2-f4bb86dee4e578d761d3161db30cd55b22c4142d.zip
Admin/Client: Can't index when missing args
There is already a check at the top of the code for missing args. Also, you can't ever reach this code (in the failure case). Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
-rw-r--r--src/lib/Bcfg2/Server/Admin/Client.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Admin/Client.py b/src/lib/Bcfg2/Server/Admin/Client.py
index 4d580c54c..734e9573d 100644
--- a/src/lib/Bcfg2/Server/Admin/Client.py
+++ b/src/lib/Bcfg2/Server/Admin/Client.py
@@ -59,6 +59,3 @@ class Client(Bcfg2.Server.Admin.MetadataCore):
tree.xinclude()
for node in tree.findall("//Client"):
print(node.attrib["name"])
- else:
- print("No command specified")
- raise SystemExit(1)