From 041d668831af7ae40f1e5918ed9298520efeed92 Mon Sep 17 00:00:00 2001 From: cam Date: Wed, 16 Aug 2023 11:43:14 +1200 Subject: [PATCH] Added file sync after writing minion_id file --- cmd/device-register/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/device-register/main.go b/cmd/device-register/main.go index 4d38c07..fc940c6 100644 --- a/cmd/device-register/main.go +++ b/cmd/device-register/main.go @@ -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 {