Browse Source

respondd: Only write location stanza if lat/long are present

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 3 years ago
parent
commit
8c3177c1fb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      respondd/respondd-config.tmpl

+ 2 - 2
respondd/respondd-config.tmpl

@@ -6,7 +6,7 @@
 {%- endif %}
   "nodeinfo": {
     "hostname": "{{ hostname }}",
-{%- if location and not location_hidden  %}
+{%- if location and not location_hidden and location.get ('latitude') and location.get ('longitude') %}
     "location": {
       "latitude": {{ location.latitude }},
       "longitude": {{ location.longitude }}
@@ -14,7 +14,7 @@
 {%- endif %}
     "software": {
       "firmware": {
-        "release": "FFHO-1.0"
+        "release": "FFHO-{{ grains.osmajorrelease }}.0"
       }
     },
     "system": {