summaryrefslogtreecommitdiffstats
path: root/ipa
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-07-21 01:58:22 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-07-21 01:58:22 +0000
commit0c574d830062d7957c2c65081e3e66fc0bb41759 (patch)
treedcd90f7c2ce372086108868f606d4d3c34caf186 /ipa
parent7273d48169a6c0dabc1bfb0f42bafb06515fdac9 (diff)
downloadfreeipa-0c574d830062d7957c2c65081e3e66fc0bb41759.tar.gz
freeipa-0c574d830062d7957c2c65081e3e66fc0bb41759.tar.xz
freeipa-0c574d830062d7957c2c65081e3e66fc0bb41759.zip
27: Added quick hack for replace('-', '_') problem I'm having
Diffstat (limited to 'ipa')
-rwxr-xr-xipa5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipa b/ipa
index 6faa1648e..128eed383 100755
--- a/ipa
+++ b/ipa
@@ -68,11 +68,12 @@ if len(sys.argv) < 2:
print 'Usage: ipa COMMAND [OPTIONS]'
sys.exit(2)
cmd = sys.argv[1]
+pcmd = cmd.replace('-', '_')
if cmd == '_api_':
print_api()
sys.exit()
-elif cmd not in api.commands:
+elif pcmd not in api.commands:
print_commands()
print 'ipa: ERROR: unknown command %r' % cmd
sys.exit(2)
-api.commands[cmd]()
+api.commands[pcmd]()