// Update the Redfish credentials in vault for a given target.
Update the Redfish credentials in vault for a given target.
// Update the Redfish credentials in vault for a given target .
func updateCreds(targ, uname, pw string) string {
	if (appParams.VaultEnable != nil) && *appParams.VaultEnable {
		creds, err := compCredStore.GetCompCred(targ)
		if err != nil {
			return fmt.Sprintf("ERROR: Unable to read RF creds from vault for '%s': %v",
				targ, err)
		}
		creds.Username = uname
		creds.Password = pw
		err = compCredStore.StoreCompCred(creds)
		if err != nil {
			return fmt.Sprintf("ERROR: Unable to write RF creds to vault for '%s': %v",
				targ, err)
		}
	}
	return ""
}
func updateCreds ( targ , uname , pw string ) string { if ( appParams . VaultEnable != nil ) && * appParams . VaultEnable { creds , err := compCredStore . GetCompCred ( targ ) if err != nil { return fmt . Sprintf ( " " , targ , err ) } creds . Username = uname creds . Password = pw err = compCredStore . StoreCompCred ( creds ) if err != nil { return fmt . Sprintf ( " " , targ , err ) } } return " " }
Update the Redfish credentials in vault for a given target.
Update the Redfish credentials in vault for a given target .
//Can't update!! //Can't update!!