def _find_allocated_devices():
 command = ['/bin/lsblk', '--nodeps', '--noheadings', '--output', 'KNAME']
 command_result = check_output(command)
 existing = [dev for dev in command_result.split('\n') if (dev.startswith('xvd') or dev.startswith('sd'))]
 return existing

def _find_allocated_devices ( ) : command = [ '/bin/lsblk' , '--nodeps' , '--noheadings' , '--output' , 'KNAME' ] command_result = check_output ( command ) existing = [ dev for dev in command_result . split ( '\n' ) if ( dev . startswith ( 'xvd' ) or dev . startswith ( 'sd' ) ) ] return existing
enumerate the allocated device names on this host .