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 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)