From 699a570f8baae2133b95d3c3ce2cb4803dc74193 Mon Sep 17 00:00:00 2001 From: Stanislav Ivchin Date: Wed, 30 Dec 2015 15:53:36 +0300 Subject: [PATCH] little fix: facts['path'] -> facts['project_path'] --- .../modules/extras/web_infrastructure/deploy_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/web_infrastructure/deploy_helper.py b/lib/ansible/modules/extras/web_infrastructure/deploy_helper.py index 21a98765c9e..ebf5b54a8bd 100644 --- a/lib/ansible/modules/extras/web_infrastructure/deploy_helper.py +++ b/lib/ansible/modules/extras/web_infrastructure/deploy_helper.py @@ -446,12 +446,12 @@ def main(): changes += deploy_helper.remove_unfinished_file(facts['new_release_path']) changes += deploy_helper.create_link(facts['new_release_path'], facts['current_path']) if deploy_helper.clean: - changes += deploy_helper.remove_unfinished_link(facts['path']) + changes += deploy_helper.remove_unfinished_link(facts['project_path']) changes += deploy_helper.remove_unfinished_builds(facts['releases_path']) changes += deploy_helper.cleanup(facts['releases_path'], facts['new_release']) elif deploy_helper.state == 'clean': - changes += deploy_helper.remove_unfinished_link(facts['path']) + changes += deploy_helper.remove_unfinished_link(facts['project_path']) changes += deploy_helper.remove_unfinished_builds(facts['releases_path']) changes += deploy_helper.cleanup(facts['releases_path'], facts['new_release'])