def _build_gecos(gecos_dict):
    return '{0},{1},{2},{3}'.format(gecos_dict.get('fullname', ''),
                                    gecos_dict.get('roomnumber', ''),
                                    gecos_dict.get('workphone', ''),
                                    gecos_dict.get('homephone', ''))
Accepts a dictionary entry containing GECOS field names and their values,
dataset/ETHPy150Open saltstack/salt/salt/modules/solaris_user.py/_build_gecos