From e58f78eb2de1a4de1316603912a51ace2d6e2d1a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 31 Oct 2024 06:49:05 -0500 Subject: [PATCH] rename FindDroplet() -> FindDropletByName() Signed-off-by: Jeff Carr --- add.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/add.go b/add.go index b0d196f..8c86322 100644 --- a/add.go +++ b/add.go @@ -36,7 +36,7 @@ func (all *Droplets) FindDroplet(name string) *Droplet { return nil } -func (c *Cluster) FindDroplet(name string) *Droplet { +func (c *Cluster) FindDropletByName(name string) *Droplet { for _, d := range c.Droplets { if d.Hostname == name { return d @@ -76,7 +76,7 @@ func (c *Cluster) AddHypervisor(hostname string, cpus int, mem int) *Hypervisor } func (c *Cluster) AddDroplet(uuid string, hostname string, cpus int, mem int) *Droplet { - d := c.FindDroplet(hostname) + d := c.FindDropletByName(hostname) if d != nil { return d }