From e66470517daa20a3a5f0ef2c0f6747ea3c5a84d0 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Wed, 1 Dec 2021 00:11:11 -0700 Subject: [PATCH] Also set iso url when doing registration --- pkg/config/read.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/config/read.go b/pkg/config/read.go index 690802e..863be72 100644 --- a/pkg/config/read.go +++ b/pkg/config/read.go @@ -171,9 +171,11 @@ func readConfigMap(cfg string, includeCmdline bool) (map[string]interface{}, err registrationURL := convert.ToString(values.GetValueN(data, "rancheros", "install", "registrationUrl")) registrationCA := convert.ToString(values.GetValueN(data, "rancheros", "install", "registrationCaCert")) if registrationURL != "" { + isoURL := values.GetValueN(data, "rancheros", "install", "isoUrl") for { newData, err := returnRegistrationData(registrationURL, registrationCA) if err == nil { + values.PutValue(data, isoURL, "rancheros", "install", "isoUrl") return newData, nil } logrus.Errorf("failed to read registration URL %s, retrying: %v", registrationURL, err)