It is a quality of life change. Generated config requires minimal
modifications (boruta address) to work.
Change-Id: I713886ca8595ba528247087fb49587ef0f27b72a
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
dryad_rpc "git.tizen.org/tools/boruta/rpc/dryad"
superviser_rpc "git.tizen.org/tools/boruta/rpc/superviser"
"git.tizen.org/tools/muxpi/sw/nanopi/stm"
+ uuid "github.com/satori/go.uuid"
)
var (
f, err := os.Create(confPath)
exitOnErr("can't create configuration file:", err)
defer f.Close()
+
+ u, err := uuid.NewV4()
+ if err != nil {
+ // can't generate UUID so write config without it.
+ // TODO: log a warning.
+ goto end
+ }
+ configuration.Caps["UUID"] = u.String()
+
+end:
exitOnErr("can't generate new configuration:", configuration.Marshal(f))
}