mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Merge pull request #19343 from afbjorklund/distro-name
Remove any quotes around distribution id
This commit is contained in:
@ -287,7 +287,7 @@ func (r *Runtime) GetHostDistributionInfo() define.DistributionInfo {
|
||||
l := bufio.NewScanner(f)
|
||||
for l.Scan() {
|
||||
if strings.HasPrefix(l.Text(), "ID=") {
|
||||
dist.Distribution = strings.TrimPrefix(l.Text(), "ID=")
|
||||
dist.Distribution = strings.Trim(strings.TrimPrefix(l.Text(), "ID="), "\"")
|
||||
}
|
||||
if strings.HasPrefix(l.Text(), "VARIANT_ID=") {
|
||||
dist.Variant = strings.Trim(strings.TrimPrefix(l.Text(), "VARIANT_ID="), "\"")
|
||||
|
Reference in New Issue
Block a user