summaryrefslogtreecommitdiff
path: root/add.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-31 06:49:05 -0500
committerJeff Carr <[email protected]>2024-10-31 06:49:05 -0500
commite58f78eb2de1a4de1316603912a51ace2d6e2d1a (patch)
tree89e2509e4b578f08e1ad6768d5b6191c088cae23 /add.go
parent67cb013c830db0da9918a125e2e4373993445939 (diff)
rename FindDroplet() -> FindDropletByName()
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 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
}