import requests
import os
from .config import config


def get_status(name):
    uri = os.path.join(config.lock_server, 'nodes', name, '')
    response = requests.get(uri)
    success = response.ok
    if success:
        return response.json()
    return None

import requests
import os
from .config import config
from .misc import canonicalize_hostname


def get_status(name):
    name = canonicalize_hostname(name, user=None)
    uri = os.path.join(config.lock_server, 'nodes', name, '')
    response = requests.get(uri)
    success = response.ok
    if success:
        return response.json()
    return None

Remove the 'user@' prefix before checking status
Remove the 'user@' prefix before checking status

Signed-off-by: Zack Cerza <f801c831581d4150a2793939287636221d62131e@inktank.com>
