Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

restore_rollback => restore-rollback

  • Loading branch information...
commit 2452a3ed7dddb6819888016d1a98cd61ab0563ff 1 parent ec47cf0
Liraz Siri lirazsiri authored

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 2 cliwrapper.py
  2. +1 1  cmd.py
4 cliwrapper.py
@@ -22,14 +22,14 @@ def _list_commands(paths):
22 22 m = re.match(r'^cmd_(.*)\.py[co]?$', file)
23 23 if not m:
24 24 continue
25   - command = m.group(1)
  25 + command = m.group(1).replace("_", "-")
26 26 commands.add(command)
27 27
28 28 return commands
29 29
30 30 @staticmethod
31 31 def _get_internals_module(name, path):
32   - modname = "cmd_" + name
  32 + modname = "cmd_" + name.replace("-", "_")
33 33 args = imp.find_module(modname, path)
34 34 return imp.load_module(modname, *args)
35 35
2  cmd.py
@@ -23,7 +23,7 @@ class CliWrapper(CliWrapper):
23 23 '',
24 24 'passphrase', 'escrow',
25 25 '',
26   - 'backup', 'list', 'restore', 'restore_rollback',
  26 + 'backup', 'list', 'restore', 'restore-rollback',
27 27 '',
28 28 'internal']
29 29

0 comments on commit 2452a3e

Please sign in to comment.
Something went wrong with that request. Please try again.