summaryrefslogtreecommitdiff
path: root/add.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-01 08:45:52 -0500
committerJeff Carr <[email protected]>2024-11-01 08:45:52 -0500
commit1a72fdceef64e6cba22db71e3383e85a112862dc (patch)
tree8b67f1ac3e9c90ff9ee5cc96f3c91f3021873c22 /add.go
parentf36c19f04ff4eb2cf0ad23ff557903f952ca9719 (diff)
set preferred hypervisor
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'add.go')
-rw-r--r--add.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/add.go b/add.go
index a7f9b7a..21e9142 100644
--- a/add.go
+++ b/add.go
@@ -125,6 +125,10 @@ func (c *NewCluster) AddDropletLocal(name string, hypername string) *Droplet {
Hostname: name,
}
d.LocalOnly = "yes on: " + hypername
+
+ // by default, on locally imported domains, set the preferred hypervisor!
+ d.PreferredHypervisor = hypername
+
d.Current = new(Current)
d.Current.Hypervisor = hypername
d.StartState = DropletState_OFF