def GetRemoteResourceLimits(rpcserver, config):
 try:
  StatusUpdate('Getting current resource limits.')
  yaml_data = rpcserver.Send('/api/appversion/getresourcelimits', app_id=config.application, version=config.version)
 except urllib2.HTTPError as err:
  if (err.code != 404):
   raise
  return {}
 return yaml.safe_load(yaml_data)

def GetRemoteResourceLimits ( rpcserver , config ) : try : StatusUpdate ( 'Getting current resource limits.' ) yaml_data = rpcserver . Send ( '/api/appversion/getresourcelimits' , app_id = config . application , version = config . version ) except urllib2 . HTTPError as err : if ( err . code != 404 ) : raise return { } return yaml . safe_load ( yaml_data )
get the resource limit as reported by the admin console .