mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
ccbba8656b
commit
17e1ddf137
1 changed files with 4 additions and 1 deletions
|
@ -610,7 +610,10 @@ class State(object):
|
|||
mod_init function in the state module.
|
||||
'''
|
||||
# ensure that the module is loaded
|
||||
self.states['{0}.{1}'.format(low['state'], low['fun'])] # pylint: disable=W0106
|
||||
try:
|
||||
self.states['{0}.{1}'.format(low['state'], low['fun'])] # pylint: disable=W0106
|
||||
except KeyError:
|
||||
return
|
||||
minit = '{0}.mod_init'.format(low['state'])
|
||||
if low['state'] not in self.mod_init:
|
||||
if minit in self.states._dict:
|
||||
|
|
Loading…
Add table
Reference in a new issue