~fwereade/pyjuju/cobbler-zk-connect-error-messages

« back to all changes in this revision

Viewing changes to ensemble/providers/common/findzookeepers.py

  • Committer: William Reade
  • Date: 2011-08-15 09:29:20 UTC
  • mfrom: (314.1.3 spike-catchup)
  • Revision ID: fwereade@gmail.com-20110815092920-amun4ufsutm7d938
merge parent

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
def _require(x):
7
7
    if not x:
8
 
        raise EnvironmentNotFound(
9
 
            "No Ensemble machines found. Is the environment bootstrapped?")
 
8
        raise EnvironmentNotFound("is the environment bootstrapped?")
10
9
 
11
10
 
12
11
@inlineCallbacks
26
25
        except MachinesNotFound as e:
27
26
            missing_instance_ids.extend(e.instance_ids)
28
27
 
29
 
    raise EnvironmentNotFound("Ensemble machines are not running: %s"
 
28
    raise EnvironmentNotFound("machines are not running (%s)."
30
29
                              % ", ".join(missing_instance_ids))