openqa: slightly broaden "(N|n)ot a git repository" check
I wrote it as "Not" before, so I presumably saw the message that way, but today it seems to be "not". Let's just skip the letter. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
60da13e4ce
commit
0dc0dd6659
2 changed files with 3 additions and 2 deletions
|
@ -202,7 +202,8 @@
|
|||
repo: https://pagure.io/fedora-qa/fedora_openqa.git # noqa 401
|
||||
dest: /root/fedora_openqa
|
||||
register: gittools
|
||||
when: "(toolsbranch.stderr.find('Not a git repository') != -1) or (toolsbranch.stdout.find('On branch master') != -1)"
|
||||
# case of the 'n' seems inconstant, so intentionally omitted
|
||||
when: "(toolsbranch.stderr.find('ot a git repository') != -1) or (toolsbranch.stdout.find('On branch master') != -1)"
|
||||
|
||||
- name: Check if fedora_openqa is installed for current Python
|
||||
command: "pip show fedora_openqa"
|
||||
|
|
|
@ -182,7 +182,7 @@
|
|||
become: true
|
||||
become_user: geekotest
|
||||
when: >
|
||||
(testsbranch.stderr.find('Not a git repository') != -1) or
|
||||
(testsbranch.stderr.find('ot a git repository') != -1) or
|
||||
(testsbranch.stdout.find('On branch master') != -1 and
|
||||
testsbranch.stdout.find('Changes not staged') == -1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue