From 8fd202af3c5c4f5b79673bcc6d188dd062f3c945 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 30 Oct 2019 06:21:49 +0100 Subject: [PATCH] Fix searchreplace --- wo/cli/plugins/stack_pref.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wo/cli/plugins/stack_pref.py b/wo/cli/plugins/stack_pref.py index 91f8233..50001fd 100644 --- a/wo/cli/plugins/stack_pref.py +++ b/wo/cli/plugins/stack_pref.py @@ -1016,13 +1016,13 @@ def post_pref(self, apt_packages, packages, upgrade=False): Log.debug(self, "Setting maxmemory variable to " "{0} in redis.conf" .format(int(wo_ram * 1024 * 1024 * 0.1))) - WOFileUtils.searchreplace - (self, - "/etc/redis/redis.conf", - "# maxmemory ", - "maxmemory {0}" - .format - (int(wo_ram * 1024 * 1024 * 0.1))) + WOFileUtils.searchreplace( + self, + "/etc/redis/redis.conf", + "# maxmemory ", + "maxmemory {0}" + .format + (int(wo_ram * 1024 * 1024 * 0.1))) else: Log.debug(self, "Setting maxmemory variable to {0} "