Project

General

Profile

Actions

action #104836

closed

[easy] perl warning about uninitialized value in pattern match when localhost not reachable size:S

Added by okurz over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2022-01-12
Due date:
% Done:

0%

Estimated time:

Description

Observation

On a machine with no running openQA server

dc196a2b0353:/ # openqa-cli api jobs 
Use of uninitialized value $res_code in pattern match (m//) at /usr/share/openqa/script/../lib/OpenQA/CLI/api.pm line 57.
Connection refused

Steps to reproduce

  • podman run --pull=always --rm -it registry.opensuse.org/opensuse/tumbleweed /bin/sh -c 'zypper -n in openQA-client && openqa-cli api jobs'

Acceptance criteria

  • AC1: No perl warning when called again localhost when no openQA server is running

Suggestions

  • Take a look into lib/OpenQA/CLI/api.pm line 57 and prevent the use of uninitialized $res_code
Actions

Also available in: Atom PDF