提交 9adf10dd 编写于 作者: L Lukáš Doktor

replay: Avoid crash when remote runner not installed

The replay plugin checks for `remote` execution, which requires remote
runner to be installed. Let's avoid crash by supplying default on
missing attribute.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 1871ec39
...@@ -172,7 +172,7 @@ class Replay(CLI): ...@@ -172,7 +172,7 @@ class Replay(CLI):
elif args.replay_teststatus and args.reference: elif args.replay_teststatus and args.reference:
err = ("Option --replay-test-status is incompatible with " err = ("Option --replay-test-status is incompatible with "
"test references given on the command line.") "test references given on the command line.")
elif args.remote_hostname: elif getattr(args, "remote_hostname", False):
err = "Currently we don't replay jobs in remote hosts." err = "Currently we don't replay jobs in remote hosts."
if err is not None: if err is not None:
LOG_UI.error(err) LOG_UI.error(err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册