Commit b4efae1e authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

reinitialize zmprov_lines at the proper position

parent fe303559
......@@ -44,7 +44,6 @@ class EmailList(managementagent.RabbitModule):
def _process_members_operations(self, members_operations):
zmprov = subprocess.Popen(EmailList.ZIMBRA_ZMPROV, shell=False, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
zmprov_lines = list()
for operation in members_operations:
op = ""
if operation['operation'] == 'add':
......@@ -56,6 +55,7 @@ class EmailList(managementagent.RabbitModule):
continue
list_name = operation['name']
zmprov_lines = list()
for member in operation['entries']:
zmprov_lines.append(op + " " + list_name + " " + member + "\n")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment