зеркало из https://github.com/Azure/ARO-RP.git
overridemtu.go: Fix error handling
This commit is contained in:
Родитель
6628563936
Коммит
62f4f7352d
|
@ -79,13 +79,13 @@ func (m *manager) overrideEthernetMTU(g graph.Graph) error {
|
||||||
|
|
||||||
ignitionFile, err := newMTUMachineConfigIgnitionFile("master")
|
ignitionFile, err := newMTUMachineConfigIgnitionFile("master")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
bootstrap.Config.Storage.Files = append(bootstrap.Config.Storage.Files, ignitionFile)
|
bootstrap.Config.Storage.Files = append(bootstrap.Config.Storage.Files, ignitionFile)
|
||||||
|
|
||||||
ignitionFile, err = newMTUMachineConfigIgnitionFile("worker")
|
ignitionFile, err = newMTUMachineConfigIgnitionFile("worker")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
bootstrap.Config.Storage.Files = append(bootstrap.Config.Storage.Files, ignitionFile)
|
bootstrap.Config.Storage.Files = append(bootstrap.Config.Storage.Files, ignitionFile)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче