mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 11:58:09 +00:00
fix deleting repro VMs (#36)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user