packer-cn/builder/qemu
Wilken Rivera d82b9d2072
builder/qemu: Add ok check for state values (#10249)
This changes fixes two crashes in `step_run` that expects certain
information to be in state from prior steps. This change requires
testing to ensure the bugs have been fixed.

I believe there may be more state values that need to be checked as they
may not be put into state if a build configuration has attributes that
would skip or otherwise not put data into the statebag.
2020-11-30 10:40:03 -05:00
..
version move version and useragent definitions into sdk 2020-11-18 11:42:02 -08:00
artifact.go fmt 2014-10-28 08:43:19 -07:00
builder.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
builder_test.go qemu: split config and config tests into their own files to match best practices from other builders 2020-09-17 09:57:45 -07:00
comm_config.go create packer-plugin-sdk directory and begin moving the relevant folders into it. 2020-11-13 10:47:36 -08:00
comm_config_test.go create packer-plugin-sdk directory and begin moving the relevant folders into it. 2020-11-13 10:47:36 -08:00
config.go move helper/config to bundle with the other template definitions 2020-11-18 10:34:59 -08:00
config.hcl2spec.go regenerate code 2020-11-10 08:16:59 -08:00
config_test.go update tests and website and generated partials to reflect new package format 2020-11-17 10:36:01 -08:00
driver.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
driver_mock.go add QemuImgArgs option to set specialized flags in qemu-img 2020-09-17 15:15:04 -07:00
qmp.go qemu: add support for using a network bridge 2020-05-20 16:46:32 -07:00
ssh.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_configure_qmp.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_configure_vnc.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_convert_disk.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_convert_disk_test.go add QemuImgArgs option to set specialized flags in qemu-img 2020-09-17 15:15:04 -07:00
step_copy_disk.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_copy_disk_test.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_create_disk.go builder/qemu: Add ok check for state values (#10249) 2020-11-30 10:40:03 -05:00
step_create_disk_test.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_http_ip_discover.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_http_ip_discover_test.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_port_forward.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_prepare_output_dir.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_resize_disk.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_resize_disk_test.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_run.go builder/qemu: Add ok check for state values (#10249) 2020-11-30 10:40:03 -05:00
step_run_test.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_set_iso.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_shutdown.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_shutdown_test.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_test.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_type_boot_command.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00
step_wait_guest_address.go move multistep into the plugin sdk 2020-11-17 16:31:03 -08:00