Project

General

Profile

Actions

Bug #13442

closed

foreman-debug script should return a meaningful exit code

Added by Elyézer Rezende almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
foreman-debug
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

foreman-debug script returns non-zero return code even if it completes successfully, which makes hard to automate/script since the return code is not reliable.

[root@foreman-rhel7 ~]# foreman-debug -d ~/1-foreman-debugExporting tasks, this may take a few minutes.

 HOSTNAME: foreman-rhel7.server.com
       OS: redhat
  RELEASE: Red Hat Enterprise Linux Server release 7.2 (Maipo)
  FOREMAN: 1.7.2
SATELLITE: 6.1.6
     RUBY: ruby 2.0.0p598 (2014-11-13) [x86_64-linux]
   PUPPET: 3.6.2
  DENIALS: 0

A debug file has been created: /root/1-foreman-debug.tar.xz (773856 bytes)

[root@qe-sat6-cdn-rhel7 ~]# echo $?
1
Actions

Also available in: Atom PDF