From 507352e4f0e123133a0f0c1bc45e4a521cbb3732 Mon Sep 17 00:00:00 2001 From: Andy Baker Date: Thu, 24 Sep 2015 09:42:19 +0100 Subject: [PATCH] Fix existing_mailbox check --- .../modules/extras/cloud/webfaction/webfaction_mailbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/webfaction/webfaction_mailbox.py b/lib/ansible/modules/extras/cloud/webfaction/webfaction_mailbox.py index c08bd47760..bcb355c963 100644 --- a/lib/ansible/modules/extras/cloud/webfaction/webfaction_mailbox.py +++ b/lib/ansible/modules/extras/cloud/webfaction/webfaction_mailbox.py @@ -99,7 +99,7 @@ def main(): module.params['login_password'] ) - mailbox_list = webfaction.list_mailboxes(session_id) + mailbox_list = [x['mailbox'] for x in webfaction.list_mailboxes(session_id)] existing_mailbox = mailbox_name in mailbox_list result = {}