adapt "disks" plugin to new object structure of "blockdevice""
This commit is contained in:
parent
ecf056709e
commit
f50f5b69d0
2 changed files with 2 additions and 2 deletions
|
@ -44,5 +44,5 @@ class disks(cryptobox.plugins.base.CryptoBoxPlugin):
|
||||||
def get_status(self):
|
def get_status(self):
|
||||||
"""Retrieve the current status of the feature.
|
"""Retrieve the current status of the feature.
|
||||||
"""
|
"""
|
||||||
return ":".join([e.get_device() for e in self.cbox.get_container_list()])
|
return ":".join([e.device.name for e in self.cbox.get_container_list()])
|
||||||
|
|
||||||
|
|
|
@ -39,5 +39,5 @@ class unittests(WebInterfaceTestClass):
|
||||||
self.cmd.find(r'Data.Status.Plugins.disks=(.*)$', "m")
|
self.cmd.find(r'Data.Status.Plugins.disks=(.*)$', "m")
|
||||||
devices = self.locals["__match__"].split(":")
|
devices = self.locals["__match__"].split(":")
|
||||||
self.assertTrue(len(devices)>0)
|
self.assertTrue(len(devices)>0)
|
||||||
self.assertTrue(self.device in devices)
|
self.assertTrue(self.device_html in devices)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue