From 0c5afc87b16bb562b3bf64be59089b080bbcfa7a Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Fri, 1 Jun 2012 16:22:31 +0200 Subject: [PATCH] Make reading easier. Reindent and remove "%" nesting. --- slapos/recipe/agent/__init__.py | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/slapos/recipe/agent/__init__.py b/slapos/recipe/agent/__init__.py index 3ccedff34..5369b30ec 100644 --- a/slapos/recipe/agent/__init__.py +++ b/slapos/recipe/agent/__init__.py @@ -89,17 +89,22 @@ class Recipe(BaseSlapRecipe, GenericSlapRecipe): agent_crond_path = os.path.join(self.crond, "agent") agent_crond = open(agent_crond_path, "w") - agent_crond.write("*/5 * * * * %s -S %s\n" % \ - (self.options["python_binary"], - "%s --pidfile=%s %s" % \ - (self.options["agent_binary"], self.options["pidfile"], - configuration_path))) - agent_crond.write("1 0 * * * %s -S %s %s\n" % \ - (self.options["python_binary"], - self.options["report_start"], configuration_path)) - agent_crond.write("59 23 * * * %s -S %s %s\n" % \ - (self.options["python_binary"], - self.options["report_stop"], configuration_path)) + agent_crond.write("*/5 * * * * %s -S %s --pidfile=%s %s\n" % ( + self.options["python_binary"], + self.options["agent_binary"], + self.options["pidfile"], + configuration_path, + )) + agent_crond.write("1 0 * * * %s -S %s %s\n" % ( + self.options["python_binary"], + self.options["report_start"], + 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() return self.path_list + [configuration_path, key_filepath, cert_filepath, agent_crond_path] -- 2.30.9