Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
truenas-rk3588
truenas
Commits
78980ee4
Commit
78980ee4
authored
5 years ago
by
themylogin
Committed by
William Grzybowski
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
pool.import_find job can't be async_generator
parent
3eba9c15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/middlewared/middlewared/plugins/pool.py
+3
-1
src/middlewared/middlewared/plugins/pool.py
with
3 additions
and
1 deletion
+3
-1
src/middlewared/middlewared/plugins/pool.py
View file @
78980ee4
...
...
@@ -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'
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment