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

« back to all changes in this revision

Viewing changes to assess_recovery.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:
94
94
    deleted_machines = []
95
95
    for machine in members:
96
96
        instance_id = machine.info.get('instance-id')
97
 
        if client.env.get_provider() == 'azure':
 
97
        if client.env.provider == 'azure':
98
98
            instance_id = convert_to_azure_ids(client, [instance_id])[0]
99
99
        host = machine.info.get('dns-name')
100
100
        log.info("Instrumenting node failure for member {}: {} at {}".format(