Fixed the dns records grain
Change-Id: I574c6e1a31f71502eb279cdc3c5768ee483d73fa
diff --git a/linux/meta/salt.yml b/linux/meta/salt.yml
index 4cb2e8e..9ca9ee9 100644
--- a/linux/meta/salt.yml
+++ b/linux/meta/salt.yml
@@ -21,7 +21,8 @@
{%- set dns_records = [] %}
{%- for host_name, host in network.host.items() %}
{%- if host.get('grain', False) %}
- {%- do dns_records.append(host.pop('grain')) %}
+ {%- do host.pop('grain') %}
+ {%- do dns_records.append(host) %}
{%- endif %}
{%- endfor %}
dns_records: