From d020f1d1a178b39f26191722bd5050afb349277b Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Fri, 19 Mar 2021 08:15:47 -0400 Subject: [PATCH] Fix Fleet Custom Hostname Reactor --- salt/reactor/fleet.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/reactor/fleet.sls b/salt/reactor/fleet.sls index bc2131427..cd548e689 100644 --- a/salt/reactor/fleet.sls +++ b/salt/reactor/fleet.sls @@ -89,7 +89,7 @@ def run(): # Update the Fleet host in the static pillar 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) return {}