Skip to content

Commit

Permalink
fix(pam-types): types-list does not crash on nil httpResponse.
Browse files Browse the repository at this point in the history
Signed-off-by: sbailey <1661003+spbsoluble@users.noreply.github.com>
  • Loading branch information
Keyfactor authored and spbsoluble committed Feb 8, 2024
1 parent 8042d64 commit c371b88
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@

# Keyfactor Command Utility (kfutil)

`kfutil` is a go-lang CLI wrapper for Keyfactor Command API. It also includes other utility/helper functions around automating common Keyfactor Command operations.

#### Integration status: Production - Ready for use in production environments.

## About the Keyfactor API Client

This API client allows for programmatic management of Keyfactor resources.

## Support for Keyfactor Command Utility (kfutil)

Keyfactor Command Utility (kfutil) is open source and supported on best effort level for this tool/library/client. This means customers can report Bugs, Feature Requests, Documentation amendment or questions as well as requests for customer information required for setup that needs Keyfactor access to obtain. Such requests do not follow normal SLA commitments for response or resolution. If you have a support issue, please open a support ticket via the Keyfactor Support Portal at https://support.keyfactor.com/

###### To report a problem or suggest a new feature, use the **[Issues](../../issues)** tab. If you want to contribute actual bug fixes or proposed enhancements, use the **[Pull requests](../../pulls)** tab.

---


---



## Quickstart
Expand Down
8 changes: 7 additions & 1 deletion cmd/pam.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,14 @@ var pamTypesListCmd = &cobra.Command{
log.Trace().Interface("httpResponse", httpResponse).
Msg("PAMProviderGetPamProviderTypes")
if err != nil {
var status string
if httpResponse != nil {
status = httpResponse.Status
} else {
status = "No HTTP response received from Keyfactor Command."
}
log.Error().Err(err).
Str("httpResponseCode", httpResponse.Status).
Str("httpResponseCode", status).
Msg("error listing PAM provider types")
return err
}
Expand Down

0 comments on commit c371b88

Please sign in to comment.