Skip to content
Snippets Groups Projects
Commit d25a6aae authored by Conrad Holmberg's avatar Conrad Holmberg
Browse files

Adding procedures for restoring users from file.

parent eda7e296
No related branches found
No related tags found
No related merge requests found
......@@ -100,9 +100,8 @@ if __name__ == '__main__':
# print json.dumps(members_hash, indent=2)
else:
sys.exit('Error: Email list"'+ml_fqdn+'" does not exist in domain '+args.core_uri +
"\nSee List\n"+get_ml_fqdns(ml_fqdns))
if args.restore:
"\nSee List\n"+get_ml_fqdns(ml_fqdns)
elif args.restore:
#Open user list dump file
print "restoring file."
if args.restore == '-':
......@@ -115,4 +114,4 @@ if __name__ == '__main__':
print("Received {}".format(member_email))
#new_member_list.append(member_email)
if args.restore != '-':
list_file.close()
user_file.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment