Skip to content

Commit

Permalink
Allow empty old/new BIOS password (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
riethm authored Sep 3, 2023
1 parent 4738a5d commit 22304b9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions redfish/bios.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,6 @@ func (bios *Bios) ChangePassword(passwordName, oldPassword, newPassword string)
if passwordName == "" {
return fmt.Errorf("password name must be supplied")
}
if oldPassword == "" {
return fmt.Errorf("existing password must be supplied")
}
if newPassword == "" {
return fmt.Errorf("new password must be supplied")
}

t := struct {
PasswordName string
Expand Down

0 comments on commit 22304b9

Please sign in to comment.