@@ -18,9 +18,9 @@ def get_storage_devices(removable=None,
result = json.loads(result.decode('utf'))
rval = []
for device in result['blockdevices']:
if removable and device['rm'] == '0':
if removable and (device['rm'] == '0' or device['rm'] is False):
continue
if removable == 'False' and device['rm'] == '1':
if removable == 'False' and (device['rm'] == '1' or device['rm'] is True):
if device_type is not None and device['type'] != device_type: