def _kput(url, data):
 headers = {'Content-Type': 'application/json'}
 ret = http.query(url, method='PUT', header_dict=headers, data=json.dumps(data))
 if ret.get('error'):
  return ret
 else:
  return json.loads(ret.get('body'))

def _kput ( url , data ) : headers = { 'Content-Type' : 'application/json' } ret = http . query ( url , method = 'PUT' , header_dict = headers , data = json . dumps ( data ) ) if ret . get ( 'error' ) : return ret else : return json . loads ( ret . get ( 'body' ) )
put any object in kubernetes based on url .