kubeadm: fix bug for --cri-socket flag processing logic

This commit is contained in:
SataQiu 2019-06-28 10:42:37 +08:00
parent 85aaf7ea36
commit 62c7f4317f

View File

@ -118,6 +118,9 @@ func newResetData(cmd *cobra.Command, options *resetOptions, in io.Reader, out i
return nil, err
}
klog.V(1).Infof("[reset] Detected and using CRI socket: %s", criSocketPath)
} else {
criSocketPath = options.criSocketPath
klog.V(1).Infof("[reset] Using specified CRI socket: %s", criSocketPath)
}
return &resetData{