Merge pull request #21 from simonpasquier/fix-salt-api-state

Fix salt.api state to catch undefined data
diff --git a/salt/api.sls b/salt/api.sls
index 4bc3e9b..61e5687 100644
--- a/salt/api.sls
+++ b/salt/api.sls
@@ -1,5 +1,5 @@
 {%- from "salt/map.jinja" import api with context %}
-{%- if api.enabled %}
+{%- if api.get('enabled', False) %}
 
 salt_api_packages:
   pkg.installed: