From 85969dc16d7991795f4e51594bdb93cf639de397 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 29 Sep 2020 16:29:05 -0400 Subject: [PATCH] add quotes and remove quotes --- 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 16451fec0..a32fb5cfd 100644 --- a/salt/reactor/fleet.sls +++ b/salt/reactor/fleet.sls @@ -65,7 +65,7 @@ def run(): # Update the 'packages-built' timestamp on the webpage (stored in the static pillar) for line in fileinput.input(STATICFILE, inplace=True): - line = re.sub(r'fleet_packages-timestamp: \S*', f"fleet_packages-timestamp: {strftime('%Y-%m-%d-%H:%M', gmtime())}", line.rstrip()) + line = re.sub(r'fleet_packages-timestamp: \S*', f"fleet_packages-timestamp: '{strftime('%Y-%m-%d-%H:%M', gmtime())}'", line.rstrip()) print(line) # Update the Fleet Osquery package version in the static pillar