def getdevice_by_uuid(uuid):
 with settings(hide('running', 'warnings', 'stdout'), warn_only=True):
  res = run_as_root(('blkid -U %s' % uuid))
  if (not res.succeeded):
   return None
  return res

def getdevice_by_uuid ( uuid ) : with settings ( hide ( 'running' , 'warnings' , 'stdout' ) , warn_only = True ) : res = run_as_root ( ( 'blkid -U %s' % uuid ) ) if ( not res . succeeded ) : return None return res
get a hdd device by uuid example:: from fabtools .