Skip to content

Commit 39c05ee

Browse files
PR changes
1 parent f776309 commit 39c05ee

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

cmd/bios/bios.go

+3-7
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ func CreateBiosControlCondition(ctx context.Context, action rctypes.BiosControlA
3636

3737
var biosURL *url.URL
3838
if action == rctypes.SetConfig {
39-
if biosFlags.biosConfigURL != "" {
40-
biosURL, err = url.Parse(biosFlags.biosConfigURL)
41-
if err != nil {
42-
return err
43-
}
44-
} else {
45-
log.Fatal("failed to get biosConfigURL for `mctl bios set`, yet is a required option")
39+
biosURL, err = url.Parse(biosFlags.biosConfigURL)
40+
if err != nil {
41+
return err
4642
}
4743
}
4844

cmd/bios/set.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
var setCmd = &cobra.Command{
1212
Use: "set",
13-
Short: "Set BIOS settings to something else",
13+
Short: "Set BIOS settings from github config file url",
1414
Run: func(cmd *cobra.Command, _ []string) {
1515
err := CreateBiosControlCondition(cmd.Context(), rctypes.SetConfig)
1616
if err != nil {

docs/mctl_bios.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ Manage BIOS settings
2121

2222
* [mctl](mctl.md) - mctl is a CLI utility to interact with metal toolbox services
2323
* [mctl bios reset](mctl_bios_reset.md) - Reset BIOS settings to default values
24-
* [mctl bios set](mctl_bios_set.md) - Set BIOS settings to something else
24+
* [mctl bios set](mctl_bios_set.md) - Set BIOS settings from github config file url
2525
* [mctl bios status](mctl_bios_status.md) - Get condition status of server
2626

docs/mctl_bios_set.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## mctl bios set
44

5-
Set BIOS settings to something else
5+
Set BIOS settings from github config file url
66

77
```
88
mctl bios set -s SERVER --bios-config-url BIOSCONFIGURL [flags]

0 commit comments

Comments
 (0)