diff options
| author | Jeff Carr <[email protected]> | 2024-10-31 13:21:10 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-31 13:21:10 -0500 |
| commit | 9ad173a845216488a397d5b9d8f7bc15a64c96cb (patch) | |
| tree | d66a5f2644f386500dfe231c1d756227ff63b2e3 /add.go | |
| parent | e8834578fbecc48b133e6550829de4766bc309a8 (diff) | |
expose cluster.Hypervisors
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'add.go')
| -rw-r--r-- | add.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |
