Skip to content

Commit 397e143

Browse files
committed
openqa-bootstrap: Prevent error about unknown hosts (boo#1245378)
Related bug report: https://bugzilla.suse.com/show_bug.cgi?id=1245378
1 parent 3b49d87 commit 397e143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/openqa-bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ else
114114
fi
115115
echo -e "[auth]\nmethod = Fake" > /etc/openqa/openqa.ini.d/01-enable-fake-auth.ini
116116

117-
if [[ -z $skip_suse_specifics ]] && ping -c1 download.suse.de. && (! rpm -q ca-certificates-suse); then
117+
if [[ -z $skip_suse_specifics ]] && ping -c1 download.suse.de. >/dev/null 2>&1 && (! rpm -q ca-certificates-suse); then
118118
# add internal CA if executed within suse network
119119
if ! zypper info ca-certificates-suse | grep -q ':'; then
120120
# add suse ca repo if needed

0 commit comments

Comments
 (0)