From 77577a67dadced1a9d77f411c91e9d4b351bcbc7 Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Fri, 2 Jul 2021 12:57:55 +0200 Subject: [PATCH] Disable hacky patch for issue #4 because breaks code --- musician/api.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/musician/api.py b/musician/api.py index 9a38e01..3d9755c 100644 --- a/musician/api.py +++ b/musician/api.py @@ -161,19 +161,21 @@ class Orchestra(object): # PATCH to include Pangea addresses not shown by orchestra # described on issue #4 - raw_mailboxes = self.retrieve_mailbox_list() - for mailbox in raw_mailboxes: - if mailbox['addresses'] == []: - address_data = { - 'names': [mailbox['name']], - 'forward': '', - 'domain': { - 'name': 'pangea.org.', - }, - 'mailboxes': [mailbox], - } - pangea_address = MailService.new_from_json(address_data) - addresses.append(pangea_address) + # TODO(@slamora) disabled hacky patch because breaks another funtionalities + # XXX Fix it on orchestra instead of here??? + # raw_mailboxes = self.retrieve_mailbox_list() + # for mailbox in raw_mailboxes: + # if mailbox['addresses'] == []: + # address_data = { + # 'names': [mailbox['name']], + # 'forward': '', + # 'domain': { + # 'name': 'pangea.org.', + # }, + # 'mailboxes': [mailbox], + # } + # pangea_address = MailService.new_from_json(address_data) + # addresses.append(pangea_address) return addresses