mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
fix lint comparison
This commit is contained in:
parent
d6aa368b0d
commit
c58707e0de
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ def _get_files(name=False, type="states", return_type="args") -> List:
|
|||
|
||||
if name:
|
||||
if "." in name:
|
||||
if return_type is not "docs":
|
||||
if return_type != "docs":
|
||||
# Only docs support module.function syntax
|
||||
raise ArgumentValueError("Function name given")
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue