Giuseppe Lavagetto has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/347331 )
Change subject: Fix redis directory lookup
......................................................................
Fix redis directory lookup
Since the stage is included as switchdc.stages.t06_redis, that is the
__name__ we are referring to.
Change-Id: I0b30eeedeb9a52f4186cc01a6dea758234fec0e6
---
M switchdc/stages/t06_redis.py
1 file changed, 3 insertions(+), 2 deletions(-)
Approvals:
Giuseppe Lavagetto: Looks good to me, approved
jenkins-bot: Verified
diff --git a/switchdc/stages/t06_redis.py b/switchdc/stages/t06_redis.py
index bca00ef..1d0d795 100644
--- a/switchdc/stages/t06_redis.py
+++ b/switchdc/stages/t06_redis.py
@@ -9,8 +9,9 @@
__title__ = 'Switch the Redis replication'
-config = get_module_config(__name__)
-config_dir = get_module_config_dir(__name__)
+dirname = __name__.split('.')[-1]
+config = get_module_config(dirname)
+config_dir = get_module_config_dir(dirname)
REDIS_PASSWORD = config.get('redis_password', None)
--
To view, visit https://gerrit.wikimedia.org/r/347331
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0b30eeedeb9a52f4186cc01a6dea758234fec0e6
Gerrit-PatchSet: 1
Gerrit-Project: operations/switchdc
Gerrit-Branch: master
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits