Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Commit

Permalink
Also set iso url when doing registration
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Dec 1, 2021
1 parent 2cbbd8e commit e664705
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/config/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e664705

Please sign in to comment.