mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use variable, instead of direct value
This commit is contained in:
parent
1ddc47da0a
commit
0d2675c4fe
1 changed files with 1 additions and 1 deletions
|
@ -999,7 +999,7 @@ class StateTestCase(TestCase, LoaderModuleMockMixin):
|
|||
'''
|
||||
errors = ['failure', 'everywhere']
|
||||
for int_pillar, ext_pillar in [({'foo': 'bar'}, {'fred': 'baz', '_errors': errors}),
|
||||
({}, {'fred': 'baz', '_errors': ['failure', 'everywhere']})]:
|
||||
({}, {'fred': 'baz', '_errors': errors})]:
|
||||
with patch('salt.modules.state.__pillar__', int_pillar):
|
||||
for opts, res in [({'force': True}, None),
|
||||
({'force': False}, errors),
|
||||
|
|
Loading…
Add table
Reference in a new issue