~sseman/juju-ci-tools/model-change-watcher-py3-2

« back to all changes in this revision

Viewing changes to assess_autoload_credentials.py

  • Committer: Aaron Bentley
  • Date: 2016-10-22 02:03:03 UTC
  • mto: (1674.1.10 indirect-config-4)
  • mto: This revision was merged to the branch mainline in revision 1677.
  • Revision ID: aaron.bentley@canonical.com-20161022020303-de22m9wug4t2chrz
Use provider rather than get_provider.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
    client = client_from_config(args.env, args.juju_bin, False)
78
78
    client.env.load_yaml()
79
79
    real_credential_details = client_credentials_to_details(client)
80
 
    provider = client.env.get_provider()
 
80
    provider = client.env.provider
81
81
 
82
82
    for scenario_name, scenario_setup in test_scenarios[provider]:
83
83
        log.info('* Starting test scenario: {}'.format(scenario_name))
96
96
 
97
97
def client_credentials_to_details(client):
98
98
    """Convert the credentials in the client to details."""
99
 
    provider = client.env.get_provider()
 
99
    provider = client.env.provider
100
100
    log.info("provider: {}".format(provider))
101
101
    cloud_name = client.env.get_cloud()
102
102
    log.info("cloud_name: {}".format(cloud_name))