mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
commit
4dd45b3142
@ -60,7 +60,7 @@ func Run(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
if cmds.AgentConfig.FlannelIface != "" && len(cmds.AgentConfig.NodeIP) == 0 {
|
||||
ip, err := util.GetIPFromInterface(cmds.AgentConfig.FlannelIface)
|
||||
ip, err := util.GetIPFromInterface(cmds.AgentConfig.FlannelIface)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
|
||||
}
|
||||
|
||||
if cmds.AgentConfig.FlannelIface != "" && len(cmds.AgentConfig.NodeIP) == 0 {
|
||||
ip, err := util.GetIPFromInterface(cmds.AgentConfig.FlannelIface)
|
||||
ip, err := util.GetIPFromInterface(cmds.AgentConfig.FlannelIface)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user