~makyo/juju-deployer/machines-and-placement

« back to all changes in this revision

Viewing changes to deployer/env/go.py

  • Committer: Kapil Thangavelu
  • Date: 2014-02-22 23:11:02 UTC
  • Revision ID: kapil@canonical.com-20140222231102-27q38vxf6hlmp4fz
fix use of env error, log env name on deploy, incr rev

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
                token = data.get('environments', {}).get(self.name, {}).get(
38
38
                    'admin-secret')
39
39
                if token is None:
40
 
                    raise EnvError("Environment config not found")
 
40
                    raise EnvError({
 
41
                        'Error': "Environment config not found %s" % self.name})
41
42
        with open(jenv) as fh:
42
43
            data = yaml_load(fh.read())
43
44
            token = data.get('bootstrap-config', {}).get(