git://git.onelab.eu
/
bootmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename util get_block_device_list into get_block_devices_dict and clean up its usage
[bootmanager.git]
/
source
/
steps
/
CheckForNewDisks.py
diff --git
a/source/steps/CheckForNewDisks.py
b/source/steps/CheckForNewDisks.py
index
60ae952
..
223c3ae
100644
(file)
--- a/
source/steps/CheckForNewDisks.py
+++ b/
source/steps/CheckForNewDisks.py
@@
-50,7
+50,7
@@
def Run(vars, log):
except ValueError as var:
raise BootManagerException("Variable in vars, shouldn't be: {}\n".format(var))
except ValueError as var:
raise BootManagerException("Variable in vars, shouldn't be: {}\n".format(var))
-
all_devices = systeminfo.get_block_device_lis
t(vars, log)
+
devices_dict = systeminfo.get_block_devices_dic
t(vars, log)
# will contain the new devices to add to the volume group
new_devices = []
# will contain the new devices to add to the volume group
new_devices = []
@@
-58,9
+58,9
@@
def Run(vars, log):
# total amount of new space in gb
extended_gb_size = 0
# total amount of new space in gb
extended_gb_size = 0
- for device
in all_devices.key
s():
+ for device
, details in devices_dict.item
s():
- (major, minor, blocks, gb_size, readonly) =
all_devices[device]
+ (major, minor, blocks, gb_size, readonly) =
details
if device[:14] == "/dev/planetlab":
log.write("Skipping device {} in volume group.\n".format(device))
if device[:14] == "/dev/planetlab":
log.write("Skipping device {} in volume group.\n".format(device))