mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +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
@ -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…
Reference in New Issue
Block a user