mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix None comparison in the loader
This commit is contained in:
parent
e8464e05f9
commit
141c7dd774
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def _create_loader(opts, ext_type, tag, ext_dirs=True, ext_type_dirs=None):
|
|||
|
||||
ext_type_types = []
|
||||
if ext_dirs:
|
||||
if ext_type_dirs == None:
|
||||
if ext_type_dirs is None:
|
||||
ext_type_dirs = '{0}_dirs'.format(tag)
|
||||
if ext_type_dirs in opts:
|
||||
ext_type_types.extend(opts[ext_type_dirs])
|
||||
|
|
Loading…
Add table
Reference in a new issue