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
[DEBUG ] Reading configuration from /etc/salt/master | |
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: yggdrasill | |
[DEBUG ] Configuration file path: /etc/salt/master | |
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged. | |
[INFO ] Setting up the Salt Master | |
[DEBUG ] Marking 'base64_encode' as a jinja filter | |
[DEBUG ] Marking 'base64_decode' as a jinja filter | |
[DEBUG ] Marking 'md5' as a jinja filter | |
[DEBUG ] Marking 'sha256' as a jinja filter | |
[DEBUG ] Marking 'sha512' as a jinja filter |
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
(ns utils.asyncawait | |
(:refer-clojure :exclude [await]) | |
(:require [cloroutine.core :refer [cr]])) | |
(defmacro async [& body] | |
`(js/Promise. (fn [s# f#] | |
(spawn (cr {await thunk} | |
(try (s# (do ~@body)) | |
(catch :default e# | |
(do (js/console.log e#) |