don't run deploy on import

This commit is contained in:
missytake
2023-10-13 18:09:35 +02:00
committed by holger krekel
parent 344e799a51
commit 9dfd0ee979

View File

@@ -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()