Skip to content
Snippets Groups Projects
Commit 39915a49 authored by Alexander Weidinger's avatar Alexander Weidinger
Browse files

Handle empty/Null database_obj

parent 3633a6ec
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,9 @@ include:
{% for database_obj in salt['pillar.get']('mysql:database', []) %}
{% set state_id = 'mysql_db_' ~ loop.index0 %}
{% if database_obj is mapping %}
{% if not database_obj %}{# in case database_obj == [] #}
{% continue %}
{% elif database_obj is mapping %}
{% set database = database_obj.get('name') %}
{% set present = database_obj.get('present', True) %}
{% else %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment