diff options
-rw-r--r-- | roles/openqa/server/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openqa/server/tasks/main.yml b/roles/openqa/server/tasks/main.yml index 250b6e9b7..9c029ce66 100644 --- a/roles/openqa/server/tasks/main.yml +++ b/roles/openqa/server/tasks/main.yml @@ -119,7 +119,7 @@ register: gittests become: true become_user: geekotest - when: "(testsbranch.stderr.find('Not a git repository') != -1) or (testsbranch.stdout.find('On branch master') != -1)" + when: "(testsbranch.stderr.find('Not a git repository') != -1) or (testsbranch.stdout.find('On branch master') != -1 and testsbranch.stdout.find('Changes not staged') = -1)" - name: Remove old openqa_fedora_tools checkout file: path=/root/openqa_fedora_tools state=absent |