You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The initial implementation of top.sls and Include declaration followed the python import model where a slash is represented as a period. This means that a SLS file with a period in the name ( besides the suffix period) can not be referenced. For example, webserver_1.0.sls is not referenceable because webserver_1.0 would refer to the directory/file webserver_1/0.sls
The same applies for any subdirectories, this is especially 'tricky' when git repos are created. Another command that typically can't render it's output is state.show_sls of a file in a path that contains a dot.
Describe the solution you'd like
Check for any dots in the basename of the SLS file.
The text was updated successfully, but these errors were encountered:
Add new rule to check file name of SLS files, as SLS file with a period
in the name (besides the suffix period) can not be referenced.
This commit also allows rules to only run for specific file types by
adding valid `languages` to the rule. File types are determined based
upon the file extension.
Fixeswarpnet#205
Signed-off-by: Roald Nefs <info@roaldnefs.com>
Feat: add rule to check file name of SLS files
Add new rule to check file name of SLS files, as SLS file with a period
in the name (besides the suffix period) can not be referenced.
This commit also allows rules to only run for specific file types by
adding valid `languages` to the rule. File types are determined based
upon the file extension.
Fixes#205
Is your feature request related to a problem? Please describe.
As described by the official SaltStack documentation:
Describe the solution you'd like
Check for any dots in the basename of the SLS file.
The text was updated successfully, but these errors were encountered: