From dacc91e98e82c09b17d5b0cc1d6e0c0ea95cfe15 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Wed, 17 Jul 2024 17:56:19 -0500 Subject: [PATCH] (PDB-5745) stop-unless-valid-schema-version: don't stop for missing db Don't shut down when postgres is unavailable. This was just a mistake introduced by 53b2a370acee09d889ea57e6d35e79b9a196d069. --- src/puppetlabs/puppetdb/cli/services.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/puppetlabs/puppetdb/cli/services.clj b/src/puppetlabs/puppetdb/cli/services.clj index c244862805..7fb28ea0c8 100644 --- a/src/puppetlabs/puppetdb/cli/services.clj +++ b/src/puppetlabs/puppetdb/cli/services.clj @@ -826,7 +826,7 @@ (catch SQLException ex ex))] (if (instance? SQLException res) - (stop (trs "Unable to read schema version: {0}" (.getMessage res)) 2) + (log/info (trs "Unable to read schema version: {0}" (.getMessage res))) (let [ver (-> res first :max)] (cond (= ver desired-version) true