

def chfullname(name, fullname):
    "\n    Change the user's Full Name\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' user.chfullname foo 'Foo Bar'\n    "
    if isinstance(fullname, string_types):
        fullname = _sdecode(fullname)
    pre_info = info(pre_info)
    if (not pre_info):
        raise CommandExecutionError("User '{0}' does not exist".format(name))
    if isinstance(pre_info['fullname'], string_types):
        pre_info['fullname'] = _sdecode(pre_info['fullname'])
    if (fullname == pre_info['fullname']):
        return True
    _dscl(['/Users/{0}'.format(name), 'RealName', fullname], ctype='create')
    time.sleep(1)
    current = info(name).get('fullname')
    if isinstance(current, string_types):
        current = _sdecode(current)
    return (current == fullname)

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_user.py chfullname/VarMisuse@36/103 `name`->`pre_info`