Skip to content

Commit

Permalink
Add CertificateLocations access to CertificateService
Browse files Browse the repository at this point in the history
Signed-off-by: Sean McGinnis <[email protected]>
  • Loading branch information
stmcginnis committed Apr 18, 2024
1 parent e960893 commit c765aec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions redfish/certificateservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ func (certificateservice *CertificateService) UnmarshalJSON(b []byte) error {
return nil
}

// CertificateLocations get the certificate locations.
func (certificateservice *CertificateService) CertificateLocations() (*CertificateLocations, error) {
if certificateservice.certificateLocations == "" {
return nil, nil
}
return GetCertificateLocations(certificateservice.GetClient(), certificateservice.certificateLocations)
}

// GetCertificateService will get a CertificateService instance from the service.
func GetCertificateService(c common.Client, uri string) (*CertificateService, error) {
resp, err := c.Get(uri)
Expand Down

0 comments on commit c765aec

Please sign in to comment.