mirror of https://github.com/ansible/ansible.git
Don't expect (postgres) SERVER_VERSION to be M.N (#30417)
It could be something like '10beta4', which StrictVersion() would reject. When Postgres 10 is released, it will be '10', which StrictVersion() would STILL reject. Fortunately, psycopg2 has a 'server_version' connection attribute that is guaranteed to be an integer like 90605 for version 9.6.5, or 100000 for version 10. We can safely use this for version-specific code.pull/30424/head
parent
a6c8978b74
commit
0addd53926
Loading…
Reference in New Issue