mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
lint: apply changes from golint
This commit is contained in:
parent
0c53fa7495
commit
667fd39213
3 changed files with 4 additions and 4 deletions
|
|
@ -60,7 +60,7 @@ var secretsStoreCmd = &cobra.Command{
|
||||||
Short: "Stores the given string value under secretID.",
|
Short: "Stores the given string value under secretID.",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
var (
|
var (
|
||||||
secretID string = args[0]
|
secretID = args[0]
|
||||||
secretValue string
|
secretValue string
|
||||||
store secrets.SecretStore
|
store secrets.SecretStore
|
||||||
inputFileBytes []byte
|
inputFileBytes []byte
|
||||||
|
|
@ -163,7 +163,7 @@ var secretsStoreCmd = &cobra.Command{
|
||||||
|
|
||||||
func isValidCredsJSON(val string) bool {
|
func isValidCredsJSON(val string) bool {
|
||||||
var (
|
var (
|
||||||
valid bool = !json.Valid([]byte(val))
|
valid = !json.Valid([]byte(val))
|
||||||
creds map[string]string
|
creds map[string]string
|
||||||
err error
|
err error
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ func CollectInventory(assets *[]RemoteAsset, params *CollectParams, localStore s
|
||||||
}
|
}
|
||||||
certPool := x509.NewCertPool()
|
certPool := x509.NewCertPool()
|
||||||
certPool.AppendCertsFromPEM(cacert)
|
certPool.AppendCertsFromPEM(cacert)
|
||||||
smdClient.Client.Transport = &http.Transport{
|
smdClient.Transport = &http.Transport{
|
||||||
TLSClientConfig: &tls.Config{
|
TLSClientConfig: &tls.Config{
|
||||||
RootCAs: certPool,
|
RootCAs: certPool,
|
||||||
InsecureSkipVerify: true,
|
InsecureSkipVerify: true,
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ func TestRedfishV1ServiceRootAvailability(t *testing.T) {
|
||||||
// Simple test to ensure an expected Redfish version minimum requirement.
|
// Simple test to ensure an expected Redfish version minimum requirement.
|
||||||
func TestRedfishV1Version(t *testing.T) {
|
func TestRedfishV1Version(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
url string = fmt.Sprintf("%s/redfish/v1/", *host)
|
url = fmt.Sprintf("%s/redfish/v1/", *host)
|
||||||
body client.HTTPBody = []byte{}
|
body client.HTTPBody = []byte{}
|
||||||
headers client.HTTPHeader = map[string]string{}
|
headers client.HTTPHeader = map[string]string{}
|
||||||
testClient = &http.Client{
|
testClient = &http.Client{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue