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