Skip to content

Commit aba5e22

Browse files
Le Garrec Maëlizissise
authored andcommitted
add boot_type option to _patch command
1 parent 22090d6 commit aba5e22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/cli/x_patch.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ func runPatch(cmd *Command, args []string) error {
8383
changes++
8484
payload.Bootscript = &newValue
8585
}
86+
case "boot_type":
87+
log.Debugf("%s=%s => %s=%s", fieldName, currentServer.BootType, fieldName, newValue)
88+
changes++
89+
payload.BootType = &newValue
8690
case "security_group":
8791
log.Debugf("%s=%s => %s=%s", fieldName, currentServer.SecurityGroup.Identifier, fieldName, newValue)
8892
if currentServer.SecurityGroup.Identifier != newValue {

0 commit comments

Comments
 (0)