From 8bf5e139c98e05f37de0634e39b350b7e6e56512 Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Thu, 11 May 2023 15:34:42 +0330 Subject: [PATCH] Fix flyctl reuse app (#674) Closes https://github.com/iterative/mlem/issues/667 --- mlem/contrib/flyio/meta.py | 1 + tests/contrib/test_flyio.py | 1 + 2 files changed, 2 insertions(+) diff --git a/mlem/contrib/flyio/meta.py b/mlem/contrib/flyio/meta.py index c596a926..fdf830a9 100644 --- a/mlem/contrib/flyio/meta.py +++ b/mlem/contrib/flyio/meta.py @@ -99,6 +99,7 @@ def _create_app(self, state: FlyioAppState): ) as tempdir: args = { "auto-confirm": True, + "reuse-app": True, "region": self.region or self.get_env().region or project_config("", section=FlyioConfig).region, diff --git a/tests/contrib/test_flyio.py b/tests/contrib/test_flyio.py index 46566928..8c0cdfec 100644 --- a/tests/contrib/test_flyio.py +++ b/tests/contrib/test_flyio.py @@ -26,6 +26,7 @@ def test_flyio_create_app(tmp_path: Path): workdir=ANY, kwargs={ "auto-confirm": True, + "reuse-app": True, "region": "lax", "no-deploy": True, "name": "test",