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

Remove unused variable from group member agent

parent a52ba485
No related branches found
No related tags found
1 merge request!146Feat group manager
#!/usr/bin/env python #!/usr/bin/env python
import os
import json import json
import pika import pika
import shlex import shlex
import rc_util import rc_util
from subprocess import Popen,PIPE from subprocess import Popen,PIPE
from pathlib import Path
from rc_rmq import RCRMQ from rc_rmq import RCRMQ
import rabbit_config as rcfg import rabbit_config as rcfg
...@@ -21,9 +19,7 @@ rc_rmq = RCRMQ({"exchange": rcfg.Exchange, "exchange_type": "topic"}) ...@@ -21,9 +19,7 @@ rc_rmq = RCRMQ({"exchange": rcfg.Exchange, "exchange_type": "topic"})
def group_member(ch, method, properties, body): def group_member(ch, method, properties, body):
msg = json.loads(body) msg = json.loads(body)
username = msg["username"] username = msg["username"]
action = msg["action"]
msg["task"] = task msg["task"] = task
state = msg["state"]
try: try:
if 'remove' in msg["groups"]: if 'remove' in msg["groups"]:
......
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