def log_deprecated_resource_type(func):
    def inner(cls, clients, resource_config):
        LOG.warning(_("%s is deprecated in Rally v0.3.2; use the "
                      "equivalent resource plugin name instead") %
                    cls.__name__)
        return func(cls, clients, resource_config)

    return inner
Decorator that logs use of deprecated resource type classes.
dataset/ETHPy150Open openstack/rally/rally/task/types.py/log_deprecated_resource_type