diff options
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 } |
