disk partition formatting

This commit is contained in:
Volkan Şahin 2016-08-02 18:14:20 +03:00
parent f3aa259944
commit f13482c515

View file

@ -99,6 +99,10 @@ class Registration:
def get_registration_params(self):
parts = []
for part in System.Hardware.Disk.partitions():
parts.append(part[0])
params = {
'ipAddresses': str(System.Hardware.Network.ip_addresses()).replace('[', '').replace(']', ''),
'macAddresses': str(System.Hardware.Network.mac_addresses()).replace('[', '').replace(']', ''),
@ -116,7 +120,7 @@ class Registration:
'hardware.disk.total': System.Hardware.Disk.total(),
'hardware.disk.used': System.Hardware.Disk.used(),
'hardware.disk.free': System.Hardware.Disk.free(),
'hardware.disk.partitions': System.Hardware.Disk.partitions(),
'hardware.disk.partitions': str(parts),
'hardware.memory.total': System.Hardware.Memory.total(),
'hardware.network.ipAddresses': System.Hardware.Network.ip_addresses(),
'sessions.userNames': System.Sessions.user_name(),