Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nil pointer dereference on CreateVM
The system does not allow to create a VM with both rootfs and initrd specified, that means we should be able to create a vm without initrd, but the code had some strange assumption about that: 160: _, err = client.PutGuestBootSource(ctx, &fcmodels.BootSource{ 161: KernelImagePath: &cfg.BootSource.KernelImagePage, 162: BootArgs: *cfg.BootSource.BootArgs, => 163: InitrdPath: *cfg.BootSource.InitrdPath, 164: }) At the same time, it can happen with BootArgs too as it's not a required field. Fixes #175
- Loading branch information