commit | 3885f20790479144fabb87d1f9ff46fd44e28788 | [log] [tgz] |
---|---|---|
author | Dmitry Teselkin <dteselkin@mirantis.com> | Tue Nov 13 11:33:52 2018 +0300 |
committer | Dmitry Teselkin <dteselkin@mirantis.com> | Tue Nov 13 13:30:10 2018 +0300 |
tree | 5d09f812fbd3bc5528e3635409f8aabef06fef30 | |
parent | a5871a637e03847cf7d7a1afccb2905105c556ca [diff] |
Fix checks for presence of old-style 'enabled' key 'iptables:service:enabled' is a key from old version of 'iptables' formula. New formula relies on the fact that old-style pillar data is not present. Testing if 'pillar.iptables.service.enabled' is / is not defined will fail is 'pillar.iptables.service' is not defined. This commit fixes the issue by using 'service' data structure retrieved with defaults values of empty dicts. Change-Id: I820ead66f6067dd66c9e19f7b748455d8752924c