mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
fix extended env var parsing
Signed-off-by: jkoberg <jkoberg@owncloud.com> Co-authored-by: dragonchaser <crichter@owncloud.com>
This commit is contained in:
@@ -85,18 +85,20 @@ func GetRogueEnvs() {
|
||||
}
|
||||
|
||||
res := re.FindAllSubmatch([]byte(r[1]), -1)
|
||||
if len(res) != 1 || len(res[0]) < 2 {
|
||||
if len(res) < 1 {
|
||||
fmt.Printf("Error envvar not matching pattern: %s", r[1])
|
||||
continue
|
||||
}
|
||||
|
||||
path := r[0]
|
||||
name := strings.Trim(string(res[0][1]), "\"")
|
||||
currentVars[path+name] = Variable{
|
||||
RawName: name,
|
||||
Path: path,
|
||||
FoundInCode: true,
|
||||
Name: name,
|
||||
for _, m := range res {
|
||||
path := r[0]
|
||||
name := strings.Trim(string(m[1]), "\"")
|
||||
currentVars[path+name] = Variable{
|
||||
RawName: name,
|
||||
Path: path,
|
||||
FoundInCode: true,
|
||||
Name: name,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ variables:
|
||||
do_ignore: true
|
||||
- rawname: registryEnv
|
||||
path: ocis-pkg/registry/registry.go:118
|
||||
foundincode: true
|
||||
foundincode: false
|
||||
name: MICRO_REGISTRY
|
||||
type: string
|
||||
default_value: ""
|
||||
@@ -45,7 +45,7 @@ variables:
|
||||
do_ignore: false
|
||||
- rawname: registryAddressEnv
|
||||
path: ocis-pkg/registry/registry.go:122
|
||||
foundincode: true
|
||||
foundincode: false
|
||||
name: MICRO_REGISTRY_ADDRESS
|
||||
type: string
|
||||
default_value: 127.0.0.1:9233
|
||||
@@ -54,7 +54,7 @@ variables:
|
||||
do_ignore: false
|
||||
- rawname: registryPasswordEnv
|
||||
path: ocis-pkg/registry/registry.go:115
|
||||
foundincode: true
|
||||
foundincode: false
|
||||
name: MICRO_REGISTRY_AUTH_PASSWORD
|
||||
type: ""
|
||||
default_value: ""
|
||||
@@ -62,7 +62,7 @@ variables:
|
||||
do_ignore: false
|
||||
- rawname: registryUsernameEnv
|
||||
path: ocis-pkg/registry/registry.go:114
|
||||
foundincode: true
|
||||
foundincode: false
|
||||
name: MICRO_REGISTRY_AUTH_USERNAME
|
||||
type: ""
|
||||
default_value: ""
|
||||
@@ -89,6 +89,46 @@ variables:
|
||||
for container images (inside the container) or '$HOME/.ocis/config' for binary
|
||||
releases.
|
||||
do_ignore: false
|
||||
- rawname: _registryAddressEnv
|
||||
path: ocis-pkg/natsjsregistry/registry.go:145
|
||||
foundincode: true
|
||||
name: _registryAddressEnv
|
||||
type: ""
|
||||
default_value: ""
|
||||
description: ""
|
||||
do_ignore: false
|
||||
- rawname: _registryAddressEnv
|
||||
path: ocis-pkg/registry/registry.go:118
|
||||
foundincode: true
|
||||
name: _registryAddressEnv
|
||||
type: ""
|
||||
default_value: ""
|
||||
description: ""
|
||||
do_ignore: false
|
||||
- rawname: _registryEnv
|
||||
path: ocis-pkg/registry/registry.go:114
|
||||
foundincode: true
|
||||
name: _registryEnv
|
||||
type: ""
|
||||
default_value: ""
|
||||
description: ""
|
||||
do_ignore: false
|
||||
- rawname: _registryPasswordEnv
|
||||
path: ocis-pkg/natsjsregistry/registry.go:163
|
||||
foundincode: true
|
||||
name: _registryPasswordEnv
|
||||
type: ""
|
||||
default_value: ""
|
||||
description: ""
|
||||
do_ignore: false
|
||||
- rawname: _registryUsernameEnv
|
||||
path: ocis-pkg/natsjsregistry/registry.go:163
|
||||
foundincode: true
|
||||
name: _registryUsernameEnv
|
||||
type: ""
|
||||
default_value: ""
|
||||
description: ""
|
||||
do_ignore: false
|
||||
- rawname: parts[0]
|
||||
path: ocis-pkg/config/envdecode/envdecode.go:382
|
||||
foundincode: true
|
||||
|
||||
Reference in New Issue
Block a user