Skip to content

Commit

Permalink
Update mdiskMode name to match convention
Browse files Browse the repository at this point in the history
  • Loading branch information
fjoenichols authored Jun 9, 2024
1 parent 44d416f commit d2f645d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/baremetal/baremetal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ func parseCreateFlags(cmd *cobra.Command) (*govultr.BareMetalCreate, error) { //
return nil, fmt.Errorf("error parsing ripv4 flag for bare metal create : %v", err)
}

mdisk_mode, err := cmd.Flags().GetString("mdisk_mode")
mdiskMode, err := cmd.Flags().GetString("mdisk_mode")
if err != nil {
return nil, fmt.Errorf("error parsing mdisk_mode flag for bare metal create : %v", err)
}
Expand Down Expand Up @@ -1174,7 +1174,7 @@ func parseCreateFlags(cmd *cobra.Command) (*govultr.BareMetalCreate, error) { //
ReservedIPv4: ripv4,
Region: region,
PersistentPxe: govultr.BoolToBoolPtr(pxe),
MdiskMode: mdisk_mode,
MdiskMode: mdiskMode,
}
if userdata != "" {
options.UserData = base64.StdEncoding.EncodeToString([]byte(userdata))
Expand Down Expand Up @@ -1222,7 +1222,7 @@ func parseUpdateFlags(cmd *cobra.Command) (*govultr.BareMetalUpdate, error) { //
return nil, fmt.Errorf("error parsing image flag for bare metal update : %v", err)
}

mdisk_mode, err := cmd.Flags().GetString("mdisk_mode")
mdiskMode, err := cmd.Flags().GetString("mdisk_mode")
if err != nil {
return nil, fmt.Errorf("error parsing image mdisk_mode for bare metal update : %v", err)
}
Expand All @@ -1233,7 +1233,7 @@ func parseUpdateFlags(cmd *cobra.Command) (*govultr.BareMetalUpdate, error) { //
ImageID: image,
Label: label,
Tags: tags,
MdiskMode: mdisk_mode,
MdiskMode: mdiskMode,
}
if userdata != "" {
options.UserData = base64.StdEncoding.EncodeToString([]byte(userdata))
Expand Down

0 comments on commit d2f645d

Please sign in to comment.