From aee7d32af677882a71ae9ca49a4360855f1b4868 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Tue, 24 Nov 2015 16:14:39 +0100 Subject: [PATCH] Small code improvement, per comment by Alex. --- patroni/postgresql.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/patroni/postgresql.py b/patroni/postgresql.py index 8a081b7d..b41d0fff 100644 --- a/patroni/postgresql.py +++ b/patroni/postgresql.py @@ -264,10 +264,7 @@ class Postgresql: method_config = self.config[replica_method].copy() # look to see if the user has supplied a full command path # if not, use the method name as the command - if "command" in method_config: - cmd = method_config["command"] - # remove the command and turn it into a shlex set - del method_config["command"] + cmd = method_config.pop('command', cmd) # add the default parameters method_config.update({"scope": self.scope, "role": "replica",