@@ -62,7 +62,7 @@ type imageConfig struct {
6262 RescueBus * string
6363 RescueDevice * string
6464 SecureBoot * bool
65- Uefi * bool
65+ Uefi bool
6666 VideoModel * string
6767 VirtioScsi * bool
6868}
@@ -270,7 +270,7 @@ func configureFlags(cmd *cobra.Command) {
270270 cmd .Flags ().String (rescueBusFlag , "" , "Sets the device bus when the image is used as a rescue image." )
271271 cmd .Flags ().String (rescueDeviceFlag , "" , "Sets the device when the image is used as a rescue image." )
272272 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." )
274274 cmd .Flags ().String (videoModelFlag , "" , "Sets Graphic device model." )
275275 cmd .Flags ().Bool (virtioScsiFlag , false , "Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block." )
276276
@@ -311,7 +311,7 @@ func parseInput(p *print.Printer, cmd *cobra.Command) (*inputModel, error) {
311311 RescueBus : flags .FlagToStringPointer (p , cmd , rescueBusFlag ),
312312 RescueDevice : flags .FlagToStringPointer (p , cmd , rescueDeviceFlag ),
313313 SecureBoot : flags .FlagToBoolPointer (p , cmd , secureBootFlag ),
314- Uefi : flags .FlagToBoolPointer (p , cmd , uefiFlag ),
314+ Uefi : flags .FlagToBoolValue (p , cmd , uefiFlag ),
315315 VideoModel : flags .FlagToStringPointer (p , cmd , videoModelFlag ),
316316 VirtioScsi : flags .FlagToBoolPointer (p , cmd , virtioScsiFlag ),
317317 },
@@ -367,7 +367,7 @@ func createPayload(_ context.Context, model *inputModel) iaas.CreateImagePayload
367367 RescueBus : iaas .NewNullableString (model .Config .RescueBus ),
368368 RescueDevice : iaas .NewNullableString (model .Config .RescueDevice ),
369369 SecureBoot : model .Config .SecureBoot ,
370- Uefi : model .Config .Uefi ,
370+ Uefi : utils . Ptr ( model .Config .Uefi ) ,
371371 VideoModel : iaas .NewNullableString (model .Config .VideoModel ),
372372 VirtioScsi : model .Config .VirtioScsi ,
373373 }
0 commit comments