-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use old-style Salt entrypoints for improved backwards compatibility.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
- Loading branch information
Showing
4 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Use old-style Salt entrypoints for improved backwards compatibility. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import pathlib | ||
|
||
SALTEXT_DIR = pathlib.Path(__file__).resolve().parent | ||
|
||
|
||
def get_engines_dirs(): | ||
""" | ||
Return a list of directories for Salt to look for engine extensions. | ||
""" | ||
return [str(SALTEXT_DIR / "engines")] | ||
|
||
|
||
def get_log_handlers_dirs(): | ||
""" | ||
Return a list of directories for Salt to look for log handlers extensions. | ||
""" | ||
return [str(SALTEXT_DIR / "log_handlers")] |
Empty file.