Skip to content
Snippets Groups Projects
Commit 033e13d3 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Check if default_groups is empty

parent 0b5b0c54
No related branches found
No related tags found
1 merge request!153Add user to default groups
...@@ -266,7 +266,7 @@ def task_manager(ch, method, properties, body): ...@@ -266,7 +266,7 @@ def task_manager(ch, method, properties, body):
# Send trigger message # Send trigger message
rc_rmq.publish_msg({"routing_key": routing_key, "msg": message}) rc_rmq.publish_msg({"routing_key": routing_key, "msg": message})
if task_name == "create_account" and success: if task_name == "create_account" and success and rcfg.default_groups:
rc_rmq.publish_msg( rc_rmq.publish_msg(
{ {
"routing_key": "group_member.add", "routing_key": "group_member.add",
......
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