We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d0172b commit bbe03bfCopy full SHA for bbe03bf
components/registry-facade/cmd/run.go
@@ -155,7 +155,13 @@ var runCmd = &cobra.Command{
155
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
156
defer cancel()
157
158
- err := reg.UpdateStaticLayer(ctx, cfg.Registry.StaticLayer)
+ cfg, err := config.GetConfig(configPath)
159
+ if err != nil {
160
+ log.WithError(err).Warn("cannot reload configuration")
161
+ return
162
+ }
163
+
164
+ err = reg.UpdateStaticLayer(ctx, cfg.Registry.StaticLayer)
165
if err != nil {
166
log.WithError(err).Warn("cannot reload configuration")
167
}
0 commit comments