Merge pull request #5996 from Security-Onion-Solutions/fix/escape-node-desc

Escape single quotes and allow for any character in node description
This commit is contained in:
William Wernert
2021-10-25 10:53:36 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
"agent": {
"nodeId": "{{ grains.host | lower }}",
"role": "{{ grains.role }}",
"description": "{{ DESCRIPTION }}",
"description": {{ DESCRIPTION | tojson }},
"address": "{{ ADDRESS }}",
"model": "{{ MODEL }}",
"pollIntervalMs": {{ CHECKININTERVALMS if CHECKININTERVALMS else 10000 }},

View File

@@ -1509,7 +1509,7 @@ host_pillar() {
" mainint: '$MNIC'"\
"sensoroni:"\
" node_address: '$MAINIP'"\
" node_description: '$NODE_DESCRIPTION'"\
" node_description: '${NODE_DESCRIPTION//\'/''}'"\
"" > "$pillar_file"
}