Commit 3f5bd234 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix another error handling case

The return from this error path is a dict, but the actual return value
(on the non-error handling) is a list of dicts. Change accordingly.

Reviewed-by: imsnah
parent 0a70a72a
......@@ -393,7 +393,7 @@ def NodeVolumes():
if result.failed:
logging.error("Failed to list logical volumes, lvs output: %s",
result.output)
return {}
return []
def parse_dev(dev):
if '(' in dev:
......
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