Browse Source

adapt "disks" plugin to new object structure of "blockdevice""

master
lars 14 years ago
parent
commit
f50f5b69d0
  1. 2
      plugins/disks/disks.py
  2. 2
      plugins/disks/unittests.py

2
plugins/disks/disks.py

@ -44,5 +44,5 @@ class disks(cryptobox.plugins.base.CryptoBoxPlugin):
def get_status(self):
"""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()])

2
plugins/disks/unittests.py

@ -39,5 +39,5 @@ class unittests(WebInterfaceTestClass):
self.cmd.find(r'Data.Status.Plugins.disks=(.*)$', "m")
devices = self.locals["__match__"].split(":")
self.assertTrue(len(devices)>0)
self.assertTrue(self.device in devices)
self.assertTrue(self.device_html in devices)

Loading…
Cancel
Save