Skip to content

Commit

Permalink
Merge pull request #4407 from patrickdillon/vsphere-destroy-tag-print
Browse files Browse the repository at this point in the history
vSphere Destroy: add log messages for tag destruction
  • Loading branch information
openshift-merge-robot authored Dec 4, 2020
2 parents abd33c5 + cb46fbf commit 268a56a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/destroy/vsphere/vsphere.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,20 @@ func (o *ClusterUninstaller) Run() error {
}

o.Logger.Debug("Delete tag")
tagLogger := o.Logger.WithField("Tag", o.InfraID)
if err = deleteTag(context.TODO(), o.RestClient, o.InfraID); err != nil {
o.Logger.Errorln(err)
tagLogger.Errorln(err)
return err
}
tagLogger.Info("Destroyed")

o.Logger.Debug("Delete tag category")
tcLogger := o.Logger.WithField("TagCategory", "openshift-"+o.InfraID)
if err = deleteTagCategory(context.TODO(), o.RestClient, "openshift-"+o.InfraID); err != nil {
o.Logger.Errorln(err)
tcLogger.Errorln(err)
return err
}
tcLogger.Info("Destroyed")

return nil
}

0 comments on commit 268a56a

Please sign in to comment.