def update_job(name, config):
 if ('name' not in config):
  config['name'] = name
 data = json.dumps(config)
 try:
  response = salt.utils.http.query('{0}/scheduler/iso8601'.format(_base_url()), method='POST', data=data, header_dict={'Content-Type': 'application/json'})
  log.debug('update response: %s', response)
  return {'success': True}
 except Exception as ex:
  log.error('unable to update chronos job: %s', get_error_message(ex))
  return {'exception': {'message': get_error_message(ex)}}

def update_job ( name , config ) : if ( 'name' not in config ) : config [ 'name' ] = name data = json . dumps ( config ) try : response = salt . utils . http . query ( '{0}/scheduler/iso8601' . format ( _base_url ( ) ) , method = 'POST' , data = data , header_dict = { 'Content-Type' : 'application/json' } ) log . debug ( 'update response: %s' , response ) return { 'success' : True } except Exception as ex : log . error ( 'unable to update chronos job: %s' , get_error_message ( ex ) ) return { 'exception' : { 'message' : get_error_message ( ex ) } }
return the updated configuration file .