mirror of
https://github.com/containers/podman.git
synced 2025-06-17 06:57:43 +08:00
Strip key/values of external quotes
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -611,7 +611,7 @@ func (f *UnitFile) Lookup(groupName string, key string) (string, bool) {
|
||||
return "", false
|
||||
}
|
||||
|
||||
return strings.TrimRightFunc(v, unicode.IsSpace), true
|
||||
return strings.Trim(strings.TrimRightFunc(v, unicode.IsSpace), "\""), true
|
||||
}
|
||||
|
||||
// Lookup the last instance of a key and convert the value to a bool
|
||||
|
Reference in New Issue
Block a user