mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Detect RDB pools too
This commit is contained in:
parent
8c4f1d9fe8
commit
f26fa3d050
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@ class wvmStorages(wvmConnect):
|
|||
stg = wvmStorage(self.host, self.login, self.passwd, self.conn, pool_name)
|
||||
if stg.get_target_path() == target:
|
||||
return self.get_storage(pool_name)
|
||||
if stg.get_type() == "rbd" and stg.get_source_name() == target:
|
||||
return self.get_storage(pool_name)
|
||||
return None
|
||||
|
||||
def create_storage(self, stg_type, name, source, target):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue