def _get_user_info(user=None):
 if (not user):
  user = __salt__['config.option']('user')
 userinfo = __salt__['user.info'](user)
 if (not userinfo):
  if (user == 'salt'):
   userinfo = _get_user_info()
  else:
   raise SaltInvocationError('User {0} does not exist'.format(user))
 return userinfo

def _get_user_info ( user = None ) : if ( not user ) : user = __salt__ [ 'config.option' ] ( 'user' ) userinfo = __salt__ [ 'user.info' ] ( user ) if ( not userinfo ) : if ( user == 'salt' ) : userinfo = _get_user_info ( ) else : raise SaltInvocationError ( 'User {0} does not exist' . format ( user ) ) return userinfo
wrapper for user .