diff --git a/resources/templates/provision/cisco/spa504g/{$mac}.xml b/resources/templates/provision/cisco/spa504g/{$mac}.xml
index d9652147e3..0212580349 100644
--- a/resources/templates/provision/cisco/spa504g/{$mac}.xml
+++ b/resources/templates/provision/cisco/spa504g/{$mac}.xml
@@ -182,12 +182,18 @@
{foreach $keys["line"] as $row}
{if $row.device_key_category == "line"}
+{if $row.device_key_type == "line"}
{$row.device_key_line}
{$row.device_key_label}
{if $row.device_key_type == "shared"}shared{else}private{/if}
+
+{else}
+Disabled
+{$row.device_key_label}
{$row.device_key_value}
+{/if}
{/if}
{/foreach}