(self, volume)
| 78 | return 'raw' |
| 79 | |
| 80 | def get_volume_path(self, volume): |
| 81 | storages = self.get_storages() |
| 82 | for storage in storages: |
| 83 | stg = self.get_storage(storage) |
| 84 | if stg.info()[0] != 0: |
| 85 | stg.refresh(0) |
| 86 | for img in stg.listVolumes(): |
| 87 | if img == volume: |
| 88 | vol = stg.storageVolLookupByName(img) |
| 89 | return vol.path() |
| 90 | |
| 91 | def get_storage_by_vol_path(self, vol_path): |
| 92 | vol = self.get_volume_by_path(vol_path) |
no test coverage detected