mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-12-23 16:52:25 +03:00
minor fixing
This commit is contained in:
parent
0c2f6892ab
commit
31be137602
1 changed files with 0 additions and 14 deletions
|
@ -123,20 +123,6 @@ class Registration():
|
||||||
|
|
||||||
return json.dumps(params)
|
return json.dumps(params)
|
||||||
|
|
||||||
"""
|
|
||||||
def get_disks(self):
|
|
||||||
disk_info = []
|
|
||||||
for _disk in psutil.disk_partitions():
|
|
||||||
disk = {}
|
|
||||||
disk['device'] = str(_disk[0])
|
|
||||||
disk['mountPoint'] = str(_disk[1])
|
|
||||||
disk['fsType'] = str(_disk[2])
|
|
||||||
disk['opts'] = str(_disk[3])
|
|
||||||
json_data = json.dumps(disk)
|
|
||||||
disk_info.append(json_data)
|
|
||||||
return disk_info
|
|
||||||
"""
|
|
||||||
|
|
||||||
def unregister(self):
|
def unregister(self):
|
||||||
self.logger.debug('[Registration] Ahenk is unregistering...')
|
self.logger.debug('[Registration] Ahenk is unregistering...')
|
||||||
self.db_service.delete('registration', ' 1==1 ')
|
self.db_service.delete('registration', ' 1==1 ')
|
||||||
|
|
Loading…
Reference in a new issue