Merge pull request #3542 from Security-Onion-Solutions/fix/fleet-custom-hostname

Fix Fleet Custom Hostname Reactor
This commit is contained in:
Josh Brower
2021-03-19 08:21:30 -04:00
committed by GitHub

View File

@@ -89,7 +89,7 @@ def run():
# Update the Fleet host in the static pillar # Update the Fleet host in the static pillar
for line in fileinput.input(STATICFILE, inplace=True): for line in fileinput.input(STATICFILE, inplace=True):
line = re.sub(r'fleet_custom_hostname:.*\n', f"fleet_custom_hostname: {CUSTOMHOSTNAME}", line.rstrip()) line = re.sub(r'fleet_custom_hostname:.*$', f"fleet_custom_hostname: {CUSTOMHOSTNAME}", line.rstrip())
print(line) print(line)
return {} return {}