You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just call the update command and the empty url is raised:
$ ./magellan update https://:443
--username root --password 0penBmc
--firmware-url http://127.0.0.1:1337/obmc-phosphor-image-.static.mtd.tar
--component BMC
{"level":"error","error":"failed to parse URI: parse "": empty url","time":"2025-01-29T17:25:35+01:00","message":"failed to update firmware"}
Describe the bug
The variable "host" is not assigned.
In https://github.com/OpenCHAMI/magellan/blob/main/cmd/update.go#L67
To Reproduce
Steps to reproduce the behavior:
$ ./magellan update https://:443
--username root --password 0penBmc
--firmware-url http://127.0.0.1:1337/obmc-phosphor-image-.static.mtd.tar
--component BMC
{"level":"error","error":"failed to parse URI: parse "": empty url","time":"2025-01-29T17:25:35+01:00","message":"failed to update firmware"}
Expected behavior
Just work if is valid
Fix
The text was updated successfully, but these errors were encountered: