'Get disks used within this pool'

def get_disks(self):

    disks = []
    for key in ('data', 'cache', 'spares', 'logs'):
        if getattr(self, key):
            disks.extend(getattr(self, key).get_disks())
    return disks
