Commit 516b1de5 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

communicate() does not allow lists. so use join()

parent e0c8d8f1
......@@ -35,7 +35,7 @@ class EmailList(managementagent.RabbitModule):
zmprov_lines.append(op + " " + operation['name'] + "\n")
zmprov.communicate(input=zmprov_lines)
zmprov.communicate(input="".join(zmprov_lines))
zmprov.stdin.close()
zmprov.stdout.close()
......@@ -60,7 +60,7 @@ class EmailList(managementagent.RabbitModule):
for member in operation['entries']:
zmprov_lines.append(op + " " + list_name + " " + member + "\n")
zmprov.communicate(input=zmprov_lines)
zmprov.communicate(input="".join(zmprov_lines))
zmprov.stdin.close()
zmprov.stdout.close()
......
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