MCPcopy
hub / github.com/retspen/webvirtcloud / get_volume_path

Method get_volume_path

vrtManager/create.py:80–89  ·  view source on GitHub ↗
(self, volume)

Source from the content-addressed store, hash-verified

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)

Callers 1

create_instanceFunction · 0.80

Calls 3

get_storagesMethod · 0.80
get_storageMethod · 0.80
refreshMethod · 0.80

Tested by

no test coverage detected