From f790b2f64589de7f1fa0390e3b47116e79d086c2 Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Thu, 16 Jun 2022 15:26:07 -0700 Subject: [PATCH] CONFIG_FILES is not a constant The CONFIG_FILES is not a constant, its a method and when this is passed to the ConfigRenderer it will cause a failure because the items() function does not exist (since its not a dict). Change-Id: Ice6cce6a736d96883eb8bc003852c2df60af7c62 Closes-Bug: 1971451 --- hooks/rabbitmq_server_relations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/rabbitmq_server_relations.py b/hooks/rabbitmq_server_relations.py index fd75a0ab..d37eadfd 100755 --- a/hooks/rabbitmq_server_relations.py +++ b/hooks/rabbitmq_server_relations.py @@ -613,7 +613,7 @@ def cluster_changed(relation_id=None, remote_unit=None): rabbit.CLUSTER_MODE_KEY: config( rabbit.CLUSTER_MODE_KEY)}) rabbit.ConfigRenderer( - rabbit.CONFIG_FILES).write_all() + rabbit.CONFIG_FILES()).write_all() if not is_leader() and is_relation_made('nrpe-external-master'): update_nrpe_checks()