~ajkavanagh/openstack-mojo-specs/fix-os-project-id-nova-creds

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python

import utils.mojo_utils as mojo_utils
import sys


def remote_runs(units):
    for unit in units:
        if not mojo_utils.remote_shell_check(unit):
            raise Exception('Juju run failed on ' + unit)


def run_check():
    juju_units = mojo_utils.get_juju_units()
    remote_runs(juju_units)
    remote_runs(juju_units)


def main(argv):
    run_check()


if __name__ == "__main__":
    sys.exit(main(sys.argv))