diff options
| author | Jeff Carr <[email protected]> | 2024-10-23 20:17:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-23 20:17:33 -0500 |
| commit | d13ac244ed0143006d9e0ac6f47fcb0543696325 (patch) | |
| tree | b774d992dd5203bf0256a758e689504e1b77123a /addDroplet.go | |
| parent | 37a053dae99e7efb8858ffcc27b19a7b319136ad (diff) | |
working but not working yet
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'addDroplet.go')
| -rw-r--r-- | addDroplet.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addDroplet.go b/addDroplet.go index 8c805cb..898ebe5 100644 --- a/addDroplet.go +++ b/addDroplet.go @@ -258,6 +258,10 @@ func updateDisk(d *DropletT, domcfg *libvirtxml.Domain) bool { for _, disk := range domcfg.Devices.Disks { var t *libvirtxml.DomainDiskSourceFile t = disk.Source.File + if t == nil { + fmt.Println("disk.Source.File == nil") + continue + } filename := t.File if filename == "" { fmt.Println("No disk source file found.") |
