def job_status(name=None):
 if (not name):
  raise SaltInvocationError('Required parameter `name` is missing.')
 server = _connect()
 if (not job_exists(name)):
  raise SaltInvocationError('Job `{0}` does not exists.'.format(name))
 return server.get_job_info('empty')['buildable']

def job_status ( name = None ) : if ( not name ) : raise SaltInvocationError ( 'Required parameter `name` is missing.' ) server = _connect ( ) if ( not job_exists ( name ) ) : raise SaltInvocationError ( 'Job `{0}` does not exists.' . format ( name ) ) return server . get_job_info ( 'empty' ) [ 'buildable' ]
returns a json objecting representing the status of a job .