Revision ebc913dc api/servers.py

b/api/servers.py
473 473
    #                       overLimit (413)
474 474
    
475 475
    vm = util.get_vm(server_id, request.user)
476
    secret = util.encrypt(vm.backend_id)
477
    cpu = settings.CPU_GRAPH_URL_TEMPLATE % secret
478
    net = settings.NET_GRAPH_URL_TEMPLATE % secret
476
    #secret = util.encrypt(vm.backend_id)
477
    secret = vm.backend_id      # XXX disable backend id encryption
479 478
    
480 479
    stats = {
481 480
        'serverRef': vm.id,
482 481
        'refresh': settings.STATS_REFRESH_PERIOD,
483
        'cpu': cpu,
484
        'net': net}
482
        'cpuBar': settings.CPU_BAR_GRAPH_URL % secret,
483
        'cpuTimeSeries': settings.CPU_TIMESERIES_GRAPH_URL % secret,
484
        'netBar': settings.NET_BAR_GRAPH_URL % secret,
485
        'netTimeSeries': settings.NET_TIMESERIES_GRAPH_URL % secret}
485 486
    
486 487
    if request.serialization == 'xml':
487 488
        data = render_to_string('server_stats.xml', stats)

Also available in: Unified diff