mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-05-02 01:17:56 +02:00
handle - in hypervisor hostname
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
Elastic License 2.0. #}
|
||||
|
||||
{% set nodetype = grains.id.split("_") | last %}
|
||||
{% set hypervisor = salt['grains.get']('salt-cloud:profile').split('-')[1] %}
|
||||
{% set hypervisor = salt['grains.get']('salt-cloud:profile').split('_')[1] %}
|
||||
|
||||
{# Import hardware details from VM hardware tracking file #}
|
||||
{% import_json 'hypervisor/hosts/' ~ hypervisor ~ '/' ~ grains.id as vm_hardware %}
|
||||
|
||||
Reference in New Issue
Block a user