Skip to content

Commit

Permalink
NOISSUE - Fix provision configuration loading (absmach#2078)
Browse files Browse the repository at this point in the history
Signed-off-by: Arvindh <[email protected]>
  • Loading branch information
arvindh123 authored and rodneyosodo committed Feb 21, 2024
1 parent 72ef951 commit a029541
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/provision/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ func loadConfig() (provision.Config, error) {
return provision.Config{}, errFailedToReadBootstrapContent
}
}

cfg.Bootstrap.Content = content

// This is default conf for provision if there is no config file
cfg.Channels = []mggroups.Group{
{
Expand All @@ -147,6 +147,7 @@ func loadConfig() (provision.Config, error) {
Metadata: map[string]interface{}{"type": "data"},
},
}

cfg.Things = []mgclients.Client{
{
Name: "thing",
Expand Down

0 comments on commit a029541

Please sign in to comment.