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

« back to all changes in this revision

Viewing changes to dump_logs.py

  • Committer: Aaron Bentley
  • Date: 2015-06-15 19:04:10 UTC
  • mfrom: (976.2.4 fix-log-rotation)
  • Revision ID: aaron.bentley@canonical.com-20150615190410-vvhtl7yxn0xbtbiy
Fix error handling in assess_log_rotation.

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