From 0a24137a19f2b804d1e1d3cac7669745c6601176 Mon Sep 17 00:00:00 2001 From: Nolan Miles Date: Wed, 17 May 2023 20:50:12 -0400 Subject: [PATCH] reorder load funcs to match newServiceConfig()'s order Signed-off-by: Nolan Miles (cherry picked from commit f3645a2aa32d4c42ce44f84a7425c3f0278177d2) Signed-off-by: Sebastiaan van Stijn --- daemon/reload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/reload.go b/daemon/reload.go index 20f1b8eacf..a5bef62712 100644 --- a/daemon/reload.go +++ b/daemon/reload.go @@ -63,10 +63,10 @@ func (daemon *Daemon) Reload(conf *config.Config) (err error) { if err := daemon.reloadAllowNondistributableArtifacts(conf, attributes); err != nil { return err } - if err := daemon.reloadInsecureRegistries(conf, attributes); err != nil { + if err := daemon.reloadRegistryMirrors(conf, attributes); err != nil { return err } - if err := daemon.reloadRegistryMirrors(conf, attributes); err != nil { + if err := daemon.reloadInsecureRegistries(conf, attributes); err != nil { return err } if err := daemon.reloadLiveRestore(conf, attributes); err != nil {