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

« back to all changes in this revision

Viewing changes to run_chaos_monkey.py

  • Committer: Aaron Bentley
  • Date: 2016-04-24 16:09:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1372.
  • Revision ID: aaron.bentley@canonical.com-20160424160949-6x1jdnkkpkcd820m
Rename create_model to add_model.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
from chaos import MonkeyRunner
9
9
from jujupy import (
10
 
    client_from_config,
 
10
    EnvJujuClient,
 
11
    SimpleEnvironment,
11
12
)
12
13
from utility import configure_logging
13
14
 
78
79
    """
79
80
    configure_logging(logging.INFO)
80
81
    args = get_args()
81
 
    client = client_from_config(args.env, None)
 
82
    client = EnvJujuClient.by_version(SimpleEnvironment.from_config(args.env))
82
83
    monkey_runner = MonkeyRunner(
83
84
        args.env, client, service=args.service,
84
85
        health_checker=args.health_checker,