Skip to content
Snippets Groups Projects
Unverified Commit 73de778b authored by Leopoldo Muñoz's avatar Leopoldo Muñoz Committed by GitHub
Browse files

Merge pull request #135 from Enstore-org/fix/media-changer-client

Fix/media changer client, missing a validation on a property.
parents f8edc045 1873eec8
No related branches found
No related tags found
No related merge requests found
......@@ -635,10 +635,18 @@ def do_work(intf):
print ticket['volume_list']
return
if e_errors.is_ok(ticket) and ticket.get("volume_list", None):
print "%17s %10s %20s %20s" % ("volume", "type", "state", "location")
for volume in ticket['volume_list']:
print "%17s %10s %20s %20s" % (volume['volume'], volume['type'],
volume['state'], volume['location'])
if type(ticket['volume_list']) is str:
print ticket['volume_list']
else:
print "%17s %10s %20s %20s" % ("volume", "type", "state", "location")
for volume in ticket['volume_list']:
print "%17s %10s %20s %20s" % (
volume['volume'],
volume['type'],
volume['state'],
volume['location']
)
return
elif intf.list_clean:
ticket = mcc.list_clean()
if e_errors.is_ok(ticket) and ticket.get("clean_list", None):
......
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