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

« back to all changes in this revision

Viewing changes to assess_jes_deploy.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:
83
83
@contextmanager
84
84
def hosted_environment(system_client, log_dir, suffix):
85
85
    env_name = '{}-{}'.format(system_client.env.environment, suffix)
86
 
    client = system_client.create_model(system_client.env.clone(env_name))
 
86
    client = system_client.add_model(system_client.env.clone(env_name))
87
87
    try:
88
88
        yield client
89
89
    except: