Fix existing_mailbox check

This commit is contained in:
Andy Baker 2015-09-24 09:42:19 +01:00
parent 7f245e8c73
commit 0ab8c9383d

View file

@ -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 = {}