diff --git a/cmd/register/main.go b/cmd/register/main.go index 5e0edd99f..4110d8f24 100644 --- a/cmd/register/main.go +++ b/cmd/register/main.go @@ -218,10 +218,7 @@ func isSystemInstalled() bool { func installRegistrationYAML(reg config.Registration) error { registrationInBytes, err := yaml.Marshal(config.Config{ Elemental: config.Elemental{ - Registration: config.Registration{ - URL: reg.URL, - CACert: reg.CACert, - }, + Registration: reg, }, }) if err != nil {