10
'run-action': ['action', 'do'],
11
'show-action-output': ['action', 'fetch'],
12
'remove-service': ['destroy-service'],
13
'create-backup': ['backups', 'create'],
14
'restore-backup': ['backups', 'restore'],
15
'enable-ha': ['ensure-availability'],
16
'list-space': ['space', 'list'],
17
'add-space': ['space', 'create'],
18
'add-subnet': ['subnet', 'add'],
19
'set-config': ['set'],
20
'get-config': ['get'],
21
'show-status': ['status'],
24
for val in substitutes.values():
26
assert subval not in sys.argv, '{} not permitted.'.format(subval)
27
for arg in sys.argv[1:]:
28
arg = substitutes.get(arg, [arg])
30
if '--version' in args:
31
print '2.0-alpha2-fake-wrapper'
33
return subprocess.call([os.environ['REAL_JUJU']] + args)
36
if __name__ == '__main__':