Skip to content

Commit

Permalink
fix: sealos reset panic (#5147)
Browse files Browse the repository at this point in the history
Signed-off-by: yangxg <[email protected]>
  • Loading branch information
yangxggo authored Oct 11, 2024
1 parent 66097b1 commit b38d6b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/bootstrap/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ func NewContextFrom(cluster *v2.Cluster) Context {
remoter := ssh.NewRemoteFromSSH(cluster.GetName(), execer)

rootfsImage := cluster.GetRootfsImage()
rootfsEnvs := v2.MergeEnvWithBuiltinKeys(rootfsImage.Env, *rootfsImage)
var rootfsEnvs map[string]string
if rootfsImage != nil {
rootfsEnvs = v2.MergeEnvWithBuiltinKeys(rootfsImage.Env, *rootfsImage)
}

// bootstrap process depends on the envs in the rootfs image
shellWrapper := func(host, shell string) string {
Expand Down

0 comments on commit b38d6b1

Please sign in to comment.