From 9dfd0ee97919a79fbb6f0151df875ea73de045c2 Mon Sep 17 00:00:00 2001 From: missytake Date: Fri, 13 Oct 2023 18:09:35 +0200 Subject: [PATCH] don't run deploy on import --- deploy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy.py b/deploy.py index 402b2a27..f3698b9d 100644 --- a/deploy.py +++ b/deploy.py @@ -1,5 +1,5 @@ import os -from pyinfra import host, facts +import pyinfra from chatmail import deploy_chatmail @@ -15,4 +15,5 @@ def main(): deploy_chatmail(mail_domain, mail_server, dkim_selector) -main() +if pyinfra.is_cli: + main()