Corrected the registryURL var name

This commit is contained in:
Ricardo Pchevuzinske Katz 2016-11-08 21:52:22 -02:00
parent 804759cbdb
commit 7a1212db45

View File

@ -110,7 +110,7 @@ func FilterAccess(username string, a *token.ResourceActions) {
if repoLength > 1 { //Only check the permission when the requested image has a namespace, i.e. project if repoLength > 1 { //Only check the permission when the requested image has a namespace, i.e. project
var projectName string var projectName string
registryURL := os.Getenv("HARBOR_REG_URL") registryURL := os.Getenv("HARBOR_REG_URL")
if repoSplit[0] == registryUrl { if repoSplit[0] == registryURL {
projectName = repoSplit[1] projectName = repoSplit[1]
log.Infof("Detected Registry URL in Project Name. Assuming this is a notary request and setting Project Name as %s\n", projectName) log.Infof("Detected Registry URL in Project Name. Assuming this is a notary request and setting Project Name as %s\n", projectName)
} else { } else {