def get_containers(): """ Returns lxc containers on the current machine and brief status information. """ list_container = lxc.list_status() return json.dumps(list_container)
def container_list(self): """ Returns a list of containers and their status. """ return lxc.list_status()