예제 #1
0
파일: getjob.py 프로젝트: sysbot/hub
#!/usr/bin/env python
import sys
import hub.lib.config as config

config_file = '/usr/local/pkg/hub/etc/hub.conf'

from hub.lib.client import Client

if __name__ == '__main__':
    jobid = sys.argv[1]
    client = Client(config_file)
    response = client.get(jobid)
    print response
예제 #2
0
파일: salthub.py 프로젝트: KrisSaxton/hub
def get_job(job_id):
    client = Client('/usr/local/pkg/hub/etc/hub.conf')
    response = client.get(job_id)
    return response
예제 #3
0
def get_job(job_id):
    client = Client('/usr/local/pkg/hub/etc/hub.conf')
    response = client.get(job_id)
    return response