Commit 78980ee4 authored by themylogin's avatar themylogin Committed by William Grzybowski
Browse files

pool.import_find job can't be async_generator

parent 3eba9c15
Showing with 3 additions and 1 deletion
+3 -1
......@@ -1801,6 +1801,7 @@ class PoolService(CRUDService):
existing_guids = [i['guid'] for i in await self.middleware.call('pool.query')]
result = []
for pool in await self.middleware.call('zfs.pool.find_import'):
if pool['status'] == 'UNAVAIL':
continue
......@@ -1812,7 +1813,8 @@ class PoolService(CRUDService):
entry = {}
for i in ('name', 'guid', 'status', 'hostname'):
entry[i] = pool[i]
yield entry
result.append(entry)
return result
@accepts(Dict(
'pool_import',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment