From 22304b96b6b5ac5661cf2fef956db9ba30b72db5 Mon Sep 17 00:00:00 2001 From: Mike Rieth Date: Sun, 3 Sep 2023 13:10:07 -0400 Subject: [PATCH] Allow empty old/new BIOS password (#273) --- redfish/bios.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/redfish/bios.go b/redfish/bios.go index 471a782a..6245e7f3 100644 --- a/redfish/bios.go +++ b/redfish/bios.go @@ -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