Skip to content

Commit 7159aca

Browse files
fix: Fix the issue where deleting the host mapping in the runtime environment causes an error." (#12779)
1 parent 2c5728e commit 7159aca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

agent/app/service/runtime_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ func handleCompose(env gotenv.Env, composeContent []byte, create request.Runtime
669669
for _, host := range create.ExtraHosts {
670670
extraHosts = append(extraHosts, fmt.Sprintf("%s:%s", host.Hostname, host.IP))
671671
}
672-
delete(serviceValue, "extraHosts")
672+
delete(serviceValue, "extra_hosts")
673673
if len(extraHosts) > 0 {
674674
serviceValue["extra_hosts"] = extraHosts
675675
}

0 commit comments

Comments
 (0)