[cubicweb.postgres] deal with absence of postgresql.datadir in pillar
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 04 Mar 2016 12:26:01 +0100
changeset 73 2ed939744ec0
parent 72 e30b533a587c
child 74 e8c227f254c0
[cubicweb.postgres] deal with absence of postgresql.datadir in pillar
cubicweb/postgres/init.sls
--- a/cubicweb/postgres/init.sls	Mon Feb 29 17:04:24 2016 +0100
+++ b/cubicweb/postgres/init.sls	Fri Mar 04 12:26:01 2016 +0100
@@ -29,7 +29,7 @@
     - name: 'main'
     - version: {{ postgresql.version }}
     - encoding: UTF8
-    {% if postgresql.datadir %}
+    {% if postgresql.get('datadir') %}
     - datadir: {{ postgresql.datadir }}
     {% endif %}
   service.running: