def _check_user(user, group):
 err = ''
 if user:
  uid = __salt__['file.user_to_uid'](user)
  if (uid == ''):
   err += 'User {0} is not available '.format(user)
 if group:
  gid = __salt__['file.group_to_gid'](group)
  if (gid == ''):
   err += 'Group {0} is not available'.format(group)
 return err

def _check_user ( user , group ) : err = '' if user : uid = __salt__ [ 'file.user_to_uid' ] ( user ) if ( uid == '' ) : err += 'User {0} is not available ' . format ( user ) if group : gid = __salt__ [ 'file.group_to_gid' ] ( group ) if ( gid == '' ) : err += 'Group {0} is not available' . format ( group ) return err
checks if the named user and group are present on the minion .