mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 09:42:15 +03:00
minor fixing
This commit is contained in:
parent
b5b9119b4c
commit
75d97dfc9f
3 changed files with 4 additions and 22 deletions
|
@ -201,6 +201,7 @@ class ExecutionManager(object):
|
|||
|
||||
return policy
|
||||
|
||||
#from db
|
||||
def get_installed_plugins(self):
|
||||
plugins = self.db_service.select('plugin', ['name', 'version'])
|
||||
p_list = []
|
||||
|
|
|
@ -28,23 +28,6 @@ class Messaging(object):
|
|||
self.logger.debug('[Messaging]Missing plugin message was created')
|
||||
return str(json_data)
|
||||
|
||||
"""
|
||||
def response_msg(self, response):
|
||||
print("response message")
|
||||
data = {}
|
||||
data['type'] = response.get_type()
|
||||
data['taskId'] = response.get_id()
|
||||
data['responseCode'] = response.get_code()
|
||||
data['responseMessage'] = response.get_message()
|
||||
data['responseData'] = response.get_data()
|
||||
data['contentType'] = response.get_content_type()
|
||||
data['timestamp'] = response.get_timestamp()
|
||||
|
||||
json_data = json.dumps(data)
|
||||
self.logger.debug('[Messaging] Response message was created')
|
||||
return str(json_data)
|
||||
"""
|
||||
|
||||
def task_status_msg(self, response):
|
||||
data = {}
|
||||
data['type'] = response.get_type()
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Author: Volkan Şahin <volkansah.in> <bm.volkansahin@gmail.com>
|
||||
|
||||
import os
|
||||
import grp
|
||||
import json
|
||||
import os
|
||||
import pwd
|
||||
import shutil
|
||||
import stat
|
||||
import pwd
|
||||
import grp
|
||||
import subprocess
|
||||
|
||||
|
||||
|
@ -183,5 +183,3 @@ class Util:
|
|||
return grp.getgrgid(gid)[0]
|
||||
except:
|
||||
raise
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue