示例#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)
示例#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)
示例#3
0
文件: api.py 项目: robvdl/lwp-pyramid
 def container_list(self):
     """
     Returns a list of containers and their status.
     """
     return lxc.list_status()