From 35e2cacac6e4dfe21208434b2dea295c62561e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= Date: Thu, 26 Sep 2019 15:57:58 +0100 Subject: [PATCH 1/2] Take checksums arg into account for postgres.datadir_init --- salt/modules/postgres.py | 1 + 1 file changed, 1 insertion(+) diff --git a/salt/modules/postgres.py b/salt/modules/postgres.py index b6f7cbe5d499..f0d1b034b947 100644 --- a/salt/modules/postgres.py +++ b/salt/modules/postgres.py @@ -3151,6 +3151,7 @@ def datadir_init(name, password=password, encoding=encoding, locale=locale, + checksums=checksums, runas=runas) return ret['retcode'] == 0 From 412e985306674753c7a14399f5aa1434bc82e84f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= Date: Thu, 26 Sep 2019 16:00:57 +0100 Subject: [PATCH 2/2] Update unit test for postgres.datadir_init --- tests/unit/modules/test_postgres.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/modules/test_postgres.py b/tests/unit/modules/test_postgres.py index 03fb7fddfd76..6f10fcf2e07e 100644 --- a/tests/unit/modules/test_postgres.py +++ b/tests/unit/modules/test_postgres.py @@ -1467,6 +1467,7 @@ def test_datadir_init(self): locale=None, password='test', runas='postgres', + checksums=False, user='postgres', ) self.assertTrue(ret)