Skip to content

Commit

Permalink
fix: incorrect variable being marshalled for secure cloud-init
Browse files Browse the repository at this point in the history
  • Loading branch information
synackd committed Dec 10, 2024
1 parent be8263c commit c3dd137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/cloud-init.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (cic *CloudInitClient) PostConfigsSecure(data []citypes.CI, token string) (
}
for _, ciData := range data {
var err error
body, err = json.Marshal(data)
body, err = json.Marshal(ciData)
if err != nil {
newErr := fmt.Errorf("PostConfigsSecure(): failed to marshal secure cloud-init data for %s: %w", ciData.Name, err)
henvs = append(henvs, HTTPEnvelope{})
Expand Down

0 comments on commit c3dd137

Please sign in to comment.