feat: removal of all addons (#1247)
* feat: removal of all addons Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: update the mj script Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: remove the default namespace Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: remove descheduler and move reloader into flux-system Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
a5cb9b8d39
commit
e321b148a6
91 files changed
+13
-2019
No files matched your search
@@ -5,7 +5,6 @@ from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from typing import Any
|
||||
from bcrypt import hashpw, gensalt
|
||||
from netaddr import IPNetwork
|
||||
|
||||
import makejinja
|
||||
@@ -21,9 +20,6 @@ def nthhost(value: str, query: int) -> str:
|
||||
return False
|
||||
return value
|
||||
|
||||
def encrypt(value: str) -> str:
|
||||
return hashpw(value.encode(), gensalt(rounds=10)).decode("ascii")
|
||||
|
||||
def import_filter(file: Path) -> Callable[[dict[str, Any]], bool]:
|
||||
module_path = file.relative_to(Path.cwd()).with_suffix("")
|
||||
module_name = str(module_path).replace("/", ".")
|
||||
@@ -50,7 +46,7 @@ class Plugin(makejinja.plugin.Plugin):
|
||||
validation.validate(data)
|
||||
|
||||
def filters(self) -> makejinja.plugin.Filters:
|
||||
return [nthhost, encrypt]
|
||||
return [nthhost]
|
||||
|
||||
def path_filters(self):
|
||||
return [self._mjfilter_func]
|
||||
|
||||
Reference in new issue
Block a user