From 9b4011cb2b1c936d419c8f7fc2d7c78a065ee090 Mon Sep 17 00:00:00 2001 From: vapao Date: Mon, 27 Dec 2021 15:55:23 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=8F=91=E5=B8=83=E6=9F=90=E4=BA=9B=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=E4=B8=80=E7=9B=B4=E6=98=BE=E7=A4=BA=E7=AD=89=E5=BE=85?= =?UTF-8?q?=E8=B0=83=E5=BA=A6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/apps/deploy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_api/apps/deploy/utils.py b/spug_api/apps/deploy/utils.py index 7409fb8..0eae686 100644 --- a/spug_api/apps/deploy/utils.py +++ b/spug_api/apps/deploy/utils.py @@ -128,7 +128,7 @@ def _ext2_deploy(req, helper, env): for action in host_actions: if action.get('type') == 'transfer': - action['src'] = render_str(action['src'].strip().rstrip('/'), env) + action['src'] = render_str(action.get('src', '').strip().rstrip('/'), env) action['dst'] = render_str(action['dst'].strip().rstrip('/'), env) if action.get('src_mode') == '1': break