On ajoute le serial dans le mapping des baies.

This commit is contained in:
Pierre-Elliott Bécue 2015-02-01 13:27:02 +01:00
parent 03a6d1b92a
commit 3471c4fd5d
4 changed files with 7 additions and 5 deletions

View file

@ -129,12 +129,13 @@ class Slon(object):
name = None
lun = None
name = Object.findall("volume_name")[0].text
serial = Object.findall("volume_serial")[0].text
lun = Object.findall("lun")[0].text
if lun is None:
pass
else:
map[int(lun)] = name
map[int(lun)] = (name, serial)
return map
def create_volume(self, name, size, unit="GB", vdisk="slon2"):