summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGurhan Ozen <gozen@redhat.com>2008-06-27 21:28:46 +0000
committerGurhan Ozen <gozen@redhat.com>2008-06-27 21:28:46 +0000
commitdf095dd565cb6b7913497aef56907918db0e9c06 (patch)
tree42dd02f26aea3a24a28ba0c8082cb388e612ba33
parente97836f6abafa4cb7d0c47f0f141f69b2cf55603 (diff)
-rwxr-xr-xTasks/distribution/inventory/push-inventory.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tasks/distribution/inventory/push-inventory.py b/Tasks/distribution/inventory/push-inventory.py
index 0842348..a7ee680 100755
--- a/Tasks/distribution/inventory/push-inventory.py
+++ b/Tasks/distribution/inventory/push-inventory.py
@@ -93,15 +93,15 @@ def read_inventory():
caps = ""
if os.path.exists("/sys/hypervisor/properties/capabilities"):
caps = open("/sys/hypervisor/properties/capabilities").read()
- if caps.find("hvm") != -1:
- data['HVM'] = True
+ if caps.find("hvm") != -1:
+ data['HVM'] = True
# calculating available diskspace
diskset = partedUtils.DiskSet()
diskset.openDevices()
for diskname in diskset.disks.keys():
- disksize = partedUtils.getDeviceSizeMB(diskset.disks[diskname].dev)
- data['DISKSPACE'] += disksize
+ disksize = partedUtils.getDeviceSizeMB(diskset.disks[diskname].dev)
+ data['DISKSPACE'] += disksize
return data