Use functools.wraps with decorators
Use functools.wraps with decorators

Otherwise, we're not fully wrapping the function so expected attributes
(at least __opts__ anyway) go missing.

Fixes #44639

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt