ucloud now logs to /etc/ucloud/log.txt, delete network interfaces on stopping of VMs

This commit is contained in:
ahmadbilalkhalid 2019-12-05 18:30:41 +05:00
commit ad87982cf0
3 changed files with 51 additions and 1 deletions

View file

@ -65,6 +65,11 @@ class VmPool:
_vms = self.vms
return list(filter(lambda x: x.status == status, _vms))
def by_owner(self, owner, _vms=None):
if _vms is None:
_vms = self.vms
return list(filter(lambda x: x.owner == owner, _vms))
def except_status(self, status, _vms=None):
if _vms is None:
_vms = self.vms