def get_action_args(self, request_environment):
        """Parse dictionary created by routes library."""
        try:
            args = request_environment['wsgiorg.routing_args'][1].copy()
        except Exception:
            return {}

        try:
            del args['controller']
        except __HOLE__:
            pass

        try:
            del args['format']
        except KeyError:
            pass

        return args
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/common/wsgi.py/Resource.get_action_args