Merge lp:~jimbaker/juju-jitsu/provider-info into lp:juju-jitsu
Proposed by
Jim Baker
Status: | Merged |
---|---|
Approved by: | Mark Mims |
Approved revision: | 73 |
Merge reported by: | Mark Mims |
Merged at revision: | not available |
Proposed branch: | lp:~jimbaker/juju-jitsu/provider-info |
Merge into: | lp:juju-jitsu |
Diff against target: |
127 lines (+95/-7) 2 files modified
bin/jitsu.in (+8/-7) sub-commands/provider-info (+87/-0) |
To merge this branch: | bzr merge lp:~jimbaker/juju-jitsu/provider-info |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mark Mims (community) | Approve | ||
Review via email: mp+115261@code.launchpad.net |
Description of the change
Adds provider-info subcommand, which collects together all available provider info (machine list, provider state), then dumps YAML. Sample output:
$ jitsu provider-info
machines:
- dns_name: localhost
instance_id: local
private_
state: running
provider-state:
zookeeper-
zookeeper-
- local
This also fixes a bug in how jitsu dispatches to subcommands; it should not use the result of parse_known_args for the dispatch, but instead do this directly from the original args, so that's sys.argv[2:]
To post a comment you must log in.
lgtm