mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Define __virtualname__ for transactional_update module
This prevent problems with LazyLoader when importing this module, which was wrongly exposing functions for this module under "state.*"
This commit is contained in:
parent
0f26cf5b93
commit
2b06ea6f65
1 changed files with 3 additions and 1 deletions
|
@ -285,6 +285,8 @@ from salt.modules.state import _check_queue, _prior_running_states, _wait, runni
|
|||
|
||||
__func_alias__ = {"apply_": "apply"}
|
||||
|
||||
__virtualname__ = "transactional_update"
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
@ -300,7 +302,7 @@ def __virtual__():
|
|||
_prior_running_states, globals()
|
||||
)
|
||||
running = salt.utils.functools.namespaced_function(running, globals())
|
||||
return True
|
||||
return __virtualname__
|
||||
else:
|
||||
return (False, "Module transactional_update requires a transactional system")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue