Exemple #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)
Exemple #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)
Exemple #3
0
 def container_list(self):
     """
     Returns a list of containers and their status.
     """
     return lxc.list_status()