mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Slight update to formatting
This commit is contained in:
parent
74bae13939
commit
2e132daa73
1 changed files with 4 additions and 4 deletions
|
@ -544,11 +544,11 @@ class _WithDeprecated(_DeprecationDecorator):
|
|||
opts = self._globals.get('__opts__', '{}')
|
||||
pillar = self._globals.get('__pillar__', '{}')
|
||||
|
||||
use_deprecated = full_name in opts.get(self.CFG_USE_DEPRECATED, list()) or \
|
||||
full_name in pillar.get(self.CFG_USE_DEPRECATED, list())
|
||||
use_deprecated = (full_name in opts.get(self.CFG_USE_DEPRECATED, list()) or
|
||||
full_name in pillar.get(self.CFG_USE_DEPRECATED, list()))
|
||||
|
||||
use_superseded = full_name in opts.get(self.CFG_USE_SUPERSEDED, list()) or \
|
||||
full_name in pillar.get(self.CFG_USE_SUPERSEDED, list())
|
||||
use_superseded = (full_name in opts.get(self.CFG_USE_SUPERSEDED, list()) or
|
||||
full_name in pillar.get(self.CFG_USE_SUPERSEDED, list()))
|
||||
|
||||
if use_deprecated and use_superseded:
|
||||
raise SaltConfigurationError("Function '{0}' is mentioned both in deprecated "
|
||||
|
|
Loading…
Add table
Reference in a new issue