Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
songlinfeng
container-toolkit
Commits
57228e38
Commit
57228e38
authored
Oct 28, 2025
by
songlinfeng
Browse files
fix ini bug
parent
ae831b78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
pkg/config/engine/podman/option.go
pkg/config/engine/podman/option.go
+5
-1
No files found.
pkg/config/engine/podman/option.go
View file @
57228e38
...
...
@@ -54,7 +54,11 @@ func (b *builder) loadConfig(config string) (*Config, error) {
}
b
.
logger
.
Infof
(
"Loading config from %v"
,
config
)
cfg
,
err
=
ini
.
Load
(
config
)
cfg
,
err
=
ini
.
LoadSources
(
ini
.
LoadOptions
{
IgnoreInlineComment
:
false
,
AllowBooleanKeys
:
true
,
PreserveSurroundedQuote
:
true
,
// 保留引号
},
config
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"unable to read config: %v"
,
err
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment