Skip to content
Snippets Groups Projects
Commit 28ef96ba authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix sto_vol tag when no volume is present

parent 702e86e7
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,8 @@ class Handler(HostHandler):
Tag('sto%s_used' % name,
lambda sto: sto.capacity - sto.available, 5, 5, storage),
Tag('sto%s_type' % name, lambda sto: sto.type, 5, 5, storage),
Tag('sto%s_vol' % name, lambda sto: ' '.join(sto.volumes),
Tag('sto%s_vol' % name,
lambda sto: ' '.join(sto.volumes) if sto.volumes else None,
5, 5, storage),
))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment