Changed the default storage location for scanning cache

This commit is contained in:
David J. Allen 2024-05-09 14:53:44 -06:00
parent e93f49eb82
commit b6d429f072
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
3 changed files with 15 additions and 12 deletions

View file

@ -33,15 +33,15 @@ var updateCmd = &cobra.Command{
Preferred: "redfish",
Protocol: protocol,
Host: host,
User: user,
Pass: pass,
User: username,
Pass: password,
Timeout: timeout,
Port: port,
},
}
// check if required params are set
if host == "" || user == "" || pass == "" {
if host == "" || username == "" || password == "" {
l.Log.Fatal("requires host, user, and pass to be set")
}
@ -69,8 +69,8 @@ var updateCmd = &cobra.Command{
func init() {
updateCmd.Flags().StringVar(&host, "bmc-host", "", "set the BMC host")
updateCmd.Flags().IntVar(&port, "bmc-port", 443, "set the BMC port")
updateCmd.Flags().StringVar(&user, "user", "", "set the BMC user")
updateCmd.Flags().StringVar(&pass, "pass", "", "set the BMC password")
updateCmd.Flags().StringVar(&username, "user", "", "set the BMC user")
updateCmd.Flags().StringVar(&password, "pass", "", "set the BMC password")
updateCmd.Flags().StringVar(&transferProtocol, "transfer-protocol", "HTTP", "set the transfer protocol")
updateCmd.Flags().StringVar(&protocol, "protocol", "https", "set the Redfish protocol")
updateCmd.Flags().StringVar(&firmwareUrl, "firmware-url", "", "set the path to the firmware")