summaryrefslogtreecommitdiff
path: root/add.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-31 13:21:10 -0500
committerJeff Carr <[email protected]>2024-10-31 13:21:10 -0500
commit9ad173a845216488a397d5b9d8f7bc15a64c96cb (patch)
treed66a5f2644f386500dfe231c1d756227ff63b2e3 /add.go
parente8834578fbecc48b133e6550829de4766bc309a8 (diff)
expose cluster.Hypervisors
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'add.go')
-rw-r--r--add.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/add.go b/add.go
index 1543341..1bfb480 100644
--- a/add.go
+++ b/add.go
@@ -48,7 +48,7 @@ func (c *NewCluster) FindDropletByName(name string) *Droplet {
}
func (c *NewCluster) FindHypervisorByName(name string) *Hypervisor {
- for _, h := range c.h.Hypervisors {
+ for _, h := range c.H.Hypervisors {
if h.Hostname == name {
return h
}
@@ -73,7 +73,7 @@ func (c *NewCluster) AddHypervisor(hostname string, cpus int, mem int) *Hypervis
h.Cpus = 1
}
h.SetMemoryGB(mem * 32)
- c.h.Hypervisors = append(c.h.Hypervisors, h)
+ c.H.Hypervisors = append(c.H.Hypervisors, h)
return h
}