avoid IndexError for loopdev assigning
authorGui Chen <gui.chen@intel.com>
Tue, 10 Sep 2013 08:34:27 +0000 (04:34 -0400)
committerGui Chen <gui.chen@intel.com>
Tue, 10 Sep 2013 08:37:02 +0000 (04:37 -0400)
commit86da2c23960a01f65ccb0cffaba3059c7eb1153b
treeaf3c40e1827bf1bd861af3f3266f1c010dc84911
parent53c4d1da4b20ce01138dae2ab48b05407e97ab61
avoid IndexError for loopdev assigning

when 'losetup -f' returns '' output,
out.split()[0] will raise IndexError

Fixes: #1094
Change-Id: Iad310d70defc3c8a83c221951f0d3f8e6dc5a8a6
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/utils/fs_related.py