Merge pull request #145 from ConnectedHomes/absolute-value-path
Don't prefix base path to absolute path
This commit is contained in:
commit
f288032d60
|
|
@ -481,7 +481,12 @@ func flagsForRelease(helm helmexec.Interface, basePath string, release *ReleaseS
|
|||
for _, value := range release.Values {
|
||||
switch typedValue := value.(type) {
|
||||
case string:
|
||||
path := filepath.Join(basePath, typedValue)
|
||||
var path string
|
||||
if filepath.IsAbs(typedValue) {
|
||||
path = typedValue
|
||||
} else {
|
||||
path = filepath.Join(basePath, typedValue)
|
||||
}
|
||||
if _, err := os.Stat(path); os.IsNotExist(err) {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue