Skip to content

Commit

Permalink
(PDB-5745) stop-unless-valid-schema-version: don't stop for missing db
Browse files Browse the repository at this point in the history
Don't shut down when postgres is unavailable.  This was just a mistake
introduced by 53b2a37.
  • Loading branch information
rbrw committed Jul 17, 2024
1 parent 9614e79 commit dacc91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/puppetlabs/puppetdb/cli/services.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dacc91e

Please sign in to comment.