diff --git a/_modules/acme_sh.py b/_modules/acme_sh.py index faf42ce..f14570d 100644 --- a/_modules/acme_sh.py +++ b/_modules/acme_sh.py @@ -11,9 +11,18 @@ import salt.utils.path from salt.exceptions import CommandExecutionError, SaltInvocationError, CommandNotFoundError - log = logging.getLogger(__name__) +if '__context__' not in globals(): + __context__ = {} + +if '__opts__' not in globals(): + __opts__ = {} + +if '__salt__' not in globals(): + __salt__ = {} + + def _get_acme_bin(home_dir): script_path = f"{home_dir}/.acme.sh/acme.sh" diff --git a/_states/acme_sh.py b/_states/acme_sh.py index 29e7f1e..4c06396 100644 --- a/_states/acme_sh.py +++ b/_states/acme_sh.py @@ -10,6 +10,15 @@ log = logging.getLogger(__name__) +if '__context__' not in globals(): + __context__ = {} + +if '__opts__' not in globals(): + __opts__ = {} + +if '__salt__' not in globals(): + __salt__ = {} + def __virtual__(): """ Only load if the acme_sh module is available in __salt__