~viswesn/juju-ci-tools/aws_boto3

« back to all changes in this revision

Viewing changes to destroy-environment

  • Committer: Aaron Bentley
  • Date: 2017-02-22 16:08:27 UTC
  • mto: (1889.2.1 jujupy-reorg)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: aaron.bentley@canonical.com-20170222160827-nz41tlqa6mp4mmh6
Remove almost all references to jujuconfig.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
import subprocess
6
6
import sys
7
7
 
8
 
from jujuconfig import NoSuchEnvironment
9
8
import jujupy
10
9
from deploy_stack import destroy_environment
11
10
 
15
14
    for env_name in sys.argv[1:]:
16
15
        try:
17
16
            client = jujupy.client_from_config(env_name, None)
18
 
        except NoSuchEnvironment as e:
 
17
        except jujupy.NoSuchEnvironment as e:
19
18
            no_failures = False
20
19
            sys.stderr.write(str(e) + '\n')
21
20
            continue