Commit 0c5afc87 authored by Vincent Pelletier's avatar Vincent Pelletier

Make reading easier.

Reindent and remove "%" nesting.
parent e2f67bcd
...@@ -89,17 +89,22 @@ class Recipe(BaseSlapRecipe, GenericSlapRecipe): ...@@ -89,17 +89,22 @@ class Recipe(BaseSlapRecipe, GenericSlapRecipe):
agent_crond_path = os.path.join(self.crond, "agent") agent_crond_path = os.path.join(self.crond, "agent")
agent_crond = open(agent_crond_path, "w") agent_crond = open(agent_crond_path, "w")
agent_crond.write("*/5 * * * * %s -S %s\n" % \ agent_crond.write("*/5 * * * * %s -S %s --pidfile=%s %s\n" % (
(self.options["python_binary"], self.options["python_binary"],
"%s --pidfile=%s %s" % \ self.options["agent_binary"],
(self.options["agent_binary"], self.options["pidfile"], self.options["pidfile"],
configuration_path))) configuration_path,
agent_crond.write("1 0 * * * %s -S %s %s\n" % \ ))
(self.options["python_binary"], agent_crond.write("1 0 * * * %s -S %s %s\n" % (
self.options["report_start"], configuration_path)) self.options["python_binary"],
agent_crond.write("59 23 * * * %s -S %s %s\n" % \ self.options["report_start"],
(self.options["python_binary"], configuration_path
self.options["report_stop"], configuration_path)) ))
agent_crond.write("59 23 * * * %s -S %s %s\n" % (
self.options["python_binary"],
self.options["report_stop"],
configuration_path,
))
agent_crond.close() agent_crond.close()
return self.path_list + [configuration_path, key_filepath, cert_filepath, agent_crond_path] return self.path_list + [configuration_path, key_filepath, cert_filepath, agent_crond_path]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment