~andreserl/+junk/ensemble-sprint

« back to all changes in this revision

Viewing changes to test

  • Committer: Gustavo Niemeyer
  • Date: 2011-07-11 16:19:02 UTC
  • mto: (268.1.2 ensemble-cobbler)
  • mto: This revision was merged to the branch mainline in revision 269.
  • Revision ID: gustavo@niemeyer.net-20110711161902-qobdcx2gpg2da0wj
Minor styling changes from review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
def main(args):
11
11
    if not "ZOOKEEPER_PATH" in  os.environ:
12
12
        # Look for a system install of ZK
13
 
        if os.path.exists('/etc/zookeeper/conf/environment'):
14
 
            print "Using system zookeeper classpath from /etc/zookeeper/conf/environment"
15
 
            os.environ["ZOOKEEPER_PATH"]="system"
 
13
        env_path = "/etc/zookeeper/conf/environment"
 
14
        if os.path.exists(env_path):
 
15
            print "Using system zookeeper classpath from %s" % env_path
 
16
            os.environ["ZOOKEEPER_PATH"] = "system"
16
17
        else:
17
18
            print ("Environment variable ZOOKEEPER_PATH must be defined "
18
19
                   "and should point to directory of Zookeeper installation")