Skip to content

Commit

Permalink
feat: handled empty admin svm in plugin call (#3410)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardikl authored Jan 29, 2025
1 parent 3c6a2a6 commit a761d08
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/collectors/rest/plugins/certificate/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ func (c *Certificate) Run(dataMap map[string]*matrix.Matrix) ([]*matrix.Matrix,
return nil, nil, nil
}

// invoke private ssl cli rest and get the admin SVM's serial number
// invoke private ssl cli rest when admin SVM is non-empty and get the admin SVM's serial number
if adminVserver == "" {
c.SLogger.Error("Admin SVM is missing in the cluster")
return nil, nil, nil
}

if adminVserverSerial, err = c.GetSecuritySsl(adminVserver); err != nil {
if ontap.IsRestErr(err, ontap.APINotFound) {
c.SLogger.Debug("Failed to collect admin SVM's serial number", slogx.Err(err))
Expand Down

0 comments on commit a761d08

Please sign in to comment.