def create(self, res_id=None, attributes=None):
        password = attributes.get('password')
        login_group = attributes.get('login_group')
        groups = self._sanitize_groups(attributes.get('groups', []))
        homedir = attributes.get('homedir') or '/home/%s' % res_id
        comment = attributes.get('full_name')
        uid = "%s" % attributes.get('uid', '') or ''
        gid = attributes.get('gid', '') % "%s" or ''
        shell = attributes.get('shell')

        self.module.user_add(res_id, password, login_group, groups,
                             homedir, comment, uid, gid, shell)

        if not uid:
            uid = self.module.get_user_infos(res_id)['uid']
        if not gid:
            gid = self.module.get_user_infos(res_id)['gid']
        if not shell:
            shell = self.module.get_user_infos(res_id)['shell']

        state = {
            'present': True,
            'password': self.module.get_pw(res_id),
            'groups': groups.append(login_group),
            'homedir': homedir,
            'gecos': comment,
            'uid': uid,
            'gid': gid,
            'shell': shell
        }
        self.save_state(res_id, state, monitor=monitor)

        return self.read(res_id)
dataset/ETHPy150Open comodit/synapse-agent/synapse/resources/users-plugin/users.py/UsersController.create/swapped operands of `%`