Skip to content

Commit

Permalink
Merge pull request #16 from CameronRP/file-sync
Browse files Browse the repository at this point in the history
Added file sync after writing minion_id file
  • Loading branch information
CameronRP authored Aug 15, 2023
2 parents 597386d + 041d668 commit 7e8165f
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 7e8165f

Please sign in to comment.