mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Switch the order of the decorator
When @requires_system_grains is listed before other decorators, wrapper function gets confused on where the grains kwarg should go.
This commit is contained in:
parent
ee997be6d8
commit
9e15df9b23
1 changed files with 1 additions and 1 deletions
|
@ -596,8 +596,8 @@ class PkgTest(integration.ModuleCase,
|
|||
'Package {0} is already up-to-date'.format(target)
|
||||
)
|
||||
|
||||
@requires_system_grains
|
||||
@requires_salt_modules('pkg.group_install')
|
||||
@requires_system_grains
|
||||
def test_group_installed_handle_missing_package_group(self, grains=None): # pylint: disable=unused-argument
|
||||
'''
|
||||
Tests that a CommandExecutionError is caught and the state returns False when
|
||||
|
|
Loading…
Add table
Reference in a new issue