Add LOG.debug() if requested device type not found

This is a follow-up patch for commit
3af9ab36bf

The review requested that a LOG.debug() message be added.

Change-Id: I36fbd4269c948812f4bee66d0130150afd0c0279
This commit is contained in:
John L. Villalovos
2015-10-07 17:06:30 -07:00
parent 2c0ebdea09
commit deb50ac5a8

@ -78,6 +78,9 @@ def list_all_block_devices(block_type='disk'):
device[key] = val.strip()
# Ignore block types not specified
if device.get('TYPE') != block_type:
LOG.debug(
"TYPE did not match. Wanted: {!r} but found: {!r}".format(
block_type, line))
continue
# Ensure all required columns are at least present, even if blank