X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsysteminfo.py;h=31407550bb29d2dbb0bb62999f4cba7d09a39e25;hb=65b46e980c3feedac65796ac6ed2c335f13d8747;hp=453629413168198da109a37c4b9d4c23c97a0bcf;hpb=3a3e97eb4dfb28bc17b84653ae3c4135394f32a4;p=bootmanager.git diff --git a/source/systeminfo.py b/source/systeminfo.py index 4536294..3140755 100755 --- a/source/systeminfo.py +++ b/source/systeminfo.py @@ -103,7 +103,7 @@ def get_total_phsyical_mem(vars = {}, log = sys.stderr): meminfo_file.close() return total_memory -def get_block_device_list(vars = {}, log = sys.stderr): +def get_block_devices_dict(vars = {}, log = sys.stderr): """ get a list of block devices from this system. return an associative array, where the device name @@ -348,7 +348,7 @@ def getKernelVersion(vars = {}, log = sys.stderr): if __name__ == "__main__": - devices = get_block_device_list() + devices = get_block_devices_dict() print("block devices detected:") if not devices: print("no devices found!")