fix deleting repro VMs (#36)

This commit is contained in:
bmc-msft
2020-09-29 09:57:52 -04:00
committed by GitHub
parent bc9d80e34b
commit d363a22e39

View File

@ -211,7 +211,9 @@ class VM(BaseModel):
auth: Authentication
def is_deleted(self) -> bool:
return has_components(str(self.name))
# A VM is considered deleted once all of it's resources including disks,
# NICs, IPs, as well as the VM are deleted
return not has_components(str(self.name))
def exists(self) -> bool:
return self.get() is not None