From 177ab6777ba7b2f738c34fa180336eeefb9e295c Mon Sep 17 00:00:00 2001 From: Byron McCollum Date: Thu, 15 Oct 2015 13:27:29 -0500 Subject: [PATCH] Ensure git clones discard local modifications If a cloned repo contains local modifications, the clone task will fail. This ensures any local modifications are discarded, ensuring a successful clone. Change-Id: Ic5799fe07e15739cc11acabba803e3be47606f94 Closes-Bug: #1506590 --- tasks/nova_console_novnc_install.yml | 1 + tasks/nova_console_spice_install.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/tasks/nova_console_novnc_install.yml b/tasks/nova_console_novnc_install.yml index bdbf55cf..904890ee 100644 --- a/tasks/nova_console_novnc_install.yml +++ b/tasks/nova_console_novnc_install.yml @@ -20,6 +20,7 @@ clone: "yes" update: "yes" version: "{{ nova_novncproxy_git_install_branch }}" + force: yes register: git_clone until: git_clone|success retries: 5 diff --git a/tasks/nova_console_spice_install.yml b/tasks/nova_console_spice_install.yml index 966130dd..5086bf47 100644 --- a/tasks/nova_console_spice_install.yml +++ b/tasks/nova_console_spice_install.yml @@ -45,6 +45,7 @@ clone: "yes" update: "yes" version: "{{ nova_spicehtml5_git_install_branch }}" + force: yes register: git_clone until: git_clone|success retries: 5