mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-15 22:41:55 +01:00
fix: add initialization for userdata download (#367)
Introduced in #363 Signed-off-by: Brad Beam <brad.beam@b-rad.info>
This commit is contained in:
parent
847cb918bc
commit
12eeab2036
@ -283,6 +283,7 @@ func Download(url string) (data *UserData, err error) {
|
||||
return data, fmt.Errorf("read user data: %s", err.Error())
|
||||
}
|
||||
|
||||
data = &UserData{}
|
||||
if err := yaml.Unmarshal(dataBytes, data); err != nil {
|
||||
return data, fmt.Errorf("unmarshal user data: %s", err.Error())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user