Merge pull request #3818 from shizhMSFT/fix_ref

Fix panic on reference.Spec.Hostname()
This commit is contained in:
Michael Crosby
2019-11-11 08:01:23 -05:00
committed by GitHub

View File

@@ -124,7 +124,7 @@ func (r Spec) Hostname() string {
i := strings.Index(r.Locator, "/")
if i < 0 {
i = len(r.Locator) + 1
return r.Locator
}
return r.Locator[:i]
}