Skip to content

Commit

Permalink
Improve cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
  • Loading branch information
Didainius committed Nov 15, 2024
1 parent ed5f990 commit 96d6ca8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions govcd/api_vcd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,11 @@ func (vcd *TestVCD) removeLeftoverEntities(entity CleanupEntity) {
vcd.infoCleanup(removedMsg, entity.EntityType, entity.Name, entity.CreatedBy)
case "OpenApiEntityVcenter":
vc, err := vcd.client.GetVCenterByName(entity.Name)
if ContainsNotFound(err) {
vcd.infoCleanup(notFoundMsg, entity.EntityType, entity.Name)
return
}

if err != nil {
vcd.infoCleanup(notDeletedMsg, entity.EntityType, entity.Name, err)
return
Expand Down

0 comments on commit 96d6ca8

Please sign in to comment.