def METHOD_NAME(self, hostname='127.0.0.1'):
    data = {'hostname': hostname}
    try:
        result = self._post('node/controller/rename', data)
    except Exception as e:
        result = FakeResult()
        result.reason = 'Node rename failed. Reason: ' + str(e)
    return result