Esempio n. 1
0
 def get(self):
   names = lxc.list_names()
   response = []
   for name in names:
     response.append({ 'name':   name,
                       'state':  lxc.info(name)['state']})
   return response
Esempio n. 2
0
 def get(self, name):
   return {'name':   name,
           'state':  lxc.info(name)['state']}