diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2012-06-04 10:52:40 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2012-06-04 10:52:40 -0500 |
commit | f4bb86dee4e578d761d3161db30cd55b22c4142d (patch) | |
tree | 406cd78ee9f29a58e2a0264914b38f98ccc8c065 | |
parent | dbb3146b3270363f76e0f6ba1ad9751ff359091c (diff) | |
download | bcfg2-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.py | 3 |
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) |