ucloud now logs to /etc/ucloud/log.txt, delete network interfaces on stopping of VMs
This commit is contained in:
parent
abc2c6fe51
commit
ad87982cf0
3 changed files with 51 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue