~vila/uci-engine/enable-nova-and-swift

« back to all changes in this revision

Viewing changes to lander/lander/run_worker.py

  • Committer: Evan Dandrea
  • Date: 2014-06-30 12:07:54 UTC
  • mfrom: (630 uci-engine)
  • mto: This revision was merged to the branch mainline in revision 655.
  • Revision ID: evan.dandrea@canonical.com-20140630120754-z6x5eqdahpp2qfrt
Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
 
38
38
def _get_parser():
39
 
    logdir = os.path.join(_here, '../../logs')
 
39
    logdir = os.path.join(_here, '../../lander-logs')
40
40
    parser = argparse.ArgumentParser(
41
41
        description='Wraps the REST API calls with a progress queue monitor.')
42
42
    parser.add_argument('--service-name',
125
125
 
126
126
 
127
127
def get_service_url(service_name, service_port):
 
128
    if not os.path.exists(SERVICE_PATH):
 
129
        return None
128
130
    for name in os.listdir(SERVICE_PATH):
129
131
        with open(os.path.join(SERVICE_PATH, name)) as f:
130
132
            buff = f.read().strip()