summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}