@@ -62,7 +62,7 @@ type imageConfig struct {
62
62
RescueBus * string
63
63
RescueDevice * string
64
64
SecureBoot * bool
65
- Uefi * bool
65
+ Uefi bool
66
66
VideoModel * string
67
67
VirtioScsi * bool
68
68
}
@@ -270,7 +270,7 @@ func configureFlags(cmd *cobra.Command) {
270
270
cmd .Flags ().String (rescueBusFlag , "" , "Sets the device bus when the image is used as a rescue image." )
271
271
cmd .Flags ().String (rescueDeviceFlag , "" , "Sets the device when the image is used as a rescue image." )
272
272
cmd .Flags ().Bool (secureBootFlag , false , "Enables Secure Boot." )
273
- cmd .Flags ().Bool (uefiFlag , false , "Enables UEFI boot." )
273
+ cmd .Flags ().Bool (uefiFlag , true , "Enables UEFI boot." )
274
274
cmd .Flags ().String (videoModelFlag , "" , "Sets Graphic device model." )
275
275
cmd .Flags ().Bool (virtioScsiFlag , false , "Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block." )
276
276
@@ -311,7 +311,7 @@ func parseInput(p *print.Printer, cmd *cobra.Command) (*inputModel, error) {
311
311
RescueBus : flags .FlagToStringPointer (p , cmd , rescueBusFlag ),
312
312
RescueDevice : flags .FlagToStringPointer (p , cmd , rescueDeviceFlag ),
313
313
SecureBoot : flags .FlagToBoolPointer (p , cmd , secureBootFlag ),
314
- Uefi : flags .FlagToBoolPointer (p , cmd , uefiFlag ),
314
+ Uefi : flags .FlagToBoolValue (p , cmd , uefiFlag ),
315
315
VideoModel : flags .FlagToStringPointer (p , cmd , videoModelFlag ),
316
316
VirtioScsi : flags .FlagToBoolPointer (p , cmd , virtioScsiFlag ),
317
317
},
@@ -367,7 +367,7 @@ func createPayload(_ context.Context, model *inputModel) iaas.CreateImagePayload
367
367
RescueBus : iaas .NewNullableString (model .Config .RescueBus ),
368
368
RescueDevice : iaas .NewNullableString (model .Config .RescueDevice ),
369
369
SecureBoot : model .Config .SecureBoot ,
370
- Uefi : model .Config .Uefi ,
370
+ Uefi : utils . Ptr ( model .Config .Uefi ) ,
371
371
VideoModel : iaas .NewNullableString (model .Config .VideoModel ),
372
372
VirtioScsi : model .Config .VirtioScsi ,
373
373
}
0 commit comments