Skip to content
Snippets Groups Projects

Fix linting

Merged Bo-Chun Chen requested to merge github/fork/diedpigs/fix-linting into feat-cod-rmq
14 files
+ 63
81
Compare changes
  • Side-by-side
  • Inline
Files
14
@@ -20,7 +20,7 @@ def ohpc_account_create(ch, method, properties, body):
@@ -20,7 +20,7 @@ def ohpc_account_create(ch, method, properties, body):
subprocess.call(["sudo", "useradd", username])
subprocess.call(["sudo", "useradd", username])
print("[{}]: User {} has been added".format(task, username))
print("[{}]: User {} has been added".format(task, username))
success = True
success = True
except:
except Exception:
e = sys.exc_info()[0]
e = sys.exc_info()[0]
print("[{}]: Error: {}".format(task, e))
print("[{}]: Error: {}".format(task, e))
@@ -38,9 +38,7 @@ def ohpc_account_create(ch, method, properties, body):
@@ -38,9 +38,7 @@ def ohpc_account_create(ch, method, properties, body):
if success:
if success:
# send create message to other agent
# send create message to other agent
rc_rmq.publish_msg(
rc_rmq.publish_msg({"routing_key": "create." + username, "msg": msg})
{"routing_key": "create." + username, "msg": msg}
)
print("Start Listening to queue: {}".format(task))
print("Start Listening to queue: {}".format(task))
Loading