def _determine_device_class():
 if (__salt__['grains.get']('kernel') == 'Linux'):
  return '/Server/Linux'

def _determine_device_class ( ) : if ( __salt__ [ 'grains.get' ] ( 'kernel' ) == 'Linux' ) : return '/Server/Linux'
if no device class is given when adding a device .