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