Fix keys attribute
diff --git a/bind/files/named.conf.local b/bind/files/named.conf.local
index 730324e..ed9a238 100644
--- a/bind/files/named.conf.local
+++ b/bind/files/named.conf.local
@@ -29,9 +29,9 @@
 
 {%- for serverip, server in server.get('server', {}).iteritems() %}
 server {{ serverip }} {
-    {%- if server.keys is defined %}
+    {%- if server.get('keys', None) %}
     keys {
-        {%- for key in server.keys %}
+        {%- for key in server.get('keys') %}
         {{ key }};
         {%- endfor %}
     };