From f13482c515f85b8064cffe048c0dd7b6fac5a809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Tue, 2 Aug 2016 18:14:20 +0300 Subject: [PATCH] disk partition formatting --- opt/ahenk/base/registration/Registration.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opt/ahenk/base/registration/Registration.py b/opt/ahenk/base/registration/Registration.py index 223029d..98070a9 100644 --- a/opt/ahenk/base/registration/Registration.py +++ b/opt/ahenk/base/registration/Registration.py @@ -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(),