mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-28 04:32:48 +03:00
root password removed from Receşved message
This commit is contained in:
parent
b87e7a36e9
commit
718999e4ef
1 changed files with 9 additions and 1 deletions
|
@ -99,7 +99,15 @@ class Messenger(ClientXMPP):
|
||||||
|
|
||||||
def recv_direct_message(self, msg):
|
def recv_direct_message(self, msg):
|
||||||
if msg['type'] in ['normal']:
|
if msg['type'] in ['normal']:
|
||||||
self.logger.info('---------->Received message: {0}'.format(str(msg['body'])))
|
j = json.loads(str(msg['body']))
|
||||||
|
i = json.loads(str(j['task']))
|
||||||
|
plugin_name = i['plugin']['name']
|
||||||
|
if not plugin_name == "manage-root":
|
||||||
|
self.logger.info('---------->Received message: {0}'.format(str(msg['body'])))
|
||||||
|
else:
|
||||||
|
parameter_map = i['parameterMap']
|
||||||
|
parameter_map.pop("RootPassword")
|
||||||
|
self.logger.info("---------->Received message: {}".format(str(parameter_map)))
|
||||||
try:
|
try:
|
||||||
j = json.loads(str(msg['body']))
|
j = json.loads(str(msg['body']))
|
||||||
message_type = j['type']
|
message_type = j['type']
|
||||||
|
|
Loading…
Reference in a new issue