summaryrefslogtreecommitdiff
path: root/system/addon/addon.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-10 11:34:55 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-10 11:34:55 -0800
commitc19a252008d2e198b346229d0f54f31115132d7d (patch)
treeab941b59df4284d47c726f7fc81a04fe759796ba /system/addon/addon.go
parent03649f39d21971db323ae95bd956eed2a229a4b7 (diff)
fix for slice len issue adding extra chars to addon id
Diffstat (limited to 'system/addon/addon.go')
-rw-r--r--system/addon/addon.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/addon/addon.go b/system/addon/addon.go
index 5f9778e..22e2114 100644
--- a/system/addon/addon.go
+++ b/system/addon/addon.go
@@ -187,7 +187,7 @@ func reverseDNS(meta Meta) (string, error) {
// reverse the host name parts, split on '.', ex. bosssauce.it => it.bosssauce
parts := strings.Split(u.Host, ".")
- strap := make([]string, len(parts), len(parts))
+ strap := make([]string, 0, len(parts))
for i := len(parts) - 1; i >= 0; i-- {
strap = append(strap, parts[i])
}