diff options
| -rw-r--r-- | helpers.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -89,16 +89,14 @@ func (c *Cluster) AddHypervisor(hostname string, cpus int, mem int) *Hypervisor return h } -func (c *Cluster) AddDroplet(hostname string, cpus int, mem int) *Droplet { +func (c *Cluster) AddDroplet(uuid string, hostname string, cpus int, mem int) *Droplet { d := c.FindDroplet(hostname) if d != nil { return d } - // Generate a new UUID - id := uuid.New() d = &Droplet{ - Uuid: id.String(), + Uuid: uuid, Hostname: hostname, Cpus: int64(cpus), } |
