~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to dump_logs.py

  • Committer: Curtis Hovey
  • Date: 2015-12-04 15:35:31 UTC
  • mto: This revision was merged to the branch mainline in revision 1168.
  • Revision ID: curtis@canonical.com-20151204153531-gyhv0uix87mwcypq
Attempt to delete machines stuck in provisioning. Explain when it must be done in the Joyent UI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
from deploy_stack import dump_env_logs
4
4
from jujupy import (
5
 
    client_from_config,
 
5
    EnvJujuClient,
 
6
    SimpleEnvironment,
6
7
    )
7
8
 
8
9
 
12
13
    parser.add_argument('directory')
13
14
    args = parser.parse_args()
14
15
 
15
 
    client = client_from_config(args.env_name, None)
 
16
    env = SimpleEnvironment.from_config(args.env_name)
 
17
    client = EnvJujuClient.by_version(env)
16
18
    dump_env_logs(client, None, args.directory)
17
19
 
18
20