Skip to content

Commit

Permalink
Added file sync after writing minion_id file
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRP committed Aug 15, 2023
1 parent 597386d commit 041d668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/device-register/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func writeToMinionIDFile(name string) error {
if _, err := f.WriteString(name); err != nil {
return err
}
return nil
return f.Sync()
}

func deleteDeviceConfigFiles() error {
Expand Down

0 comments on commit 041d668

Please sign in to comment.