diff options
author | Rishabh Dave <ridave@redhat.com> | 2024-06-11 08:13:30 +0200 |
---|---|---|
committer | Rishabh Dave <ridave@redhat.com> | 2024-06-12 12:58:18 +0200 |
commit | 0dadfdbaefbb783cf8133c840a9dcb892a5af461 (patch) | |
tree | f48c1cd9bb0b08881b250f28651a1bfe2ddcd3e2 /src/script | |
parent | Merge pull request #57957 from zdover23/wip-doc-2024-06-11-rados-troubleshoot... (diff) | |
download | ceph-0dadfdbaefbb783cf8133c840a9dcb892a5af461.tar.xz ceph-0dadfdbaefbb783cf8133c840a9dcb892a5af461.zip |
srcipt/ceph-backports: add redmine ticket's JSON to debug output
Add ticket received as JSON to debug output of ceph-backports.sh since
it is pretty helpful while debugging errors related to ticket's field.
This issue was discovered while running -
./src/script/ceph-backport.sh <tracker-num> --existing-pr <pr-num> --debug
Signed-off-by: Rishabh Dave <ridave@redhat.com>
Diffstat (limited to 'src/script')
-rwxr-xr-x | src/script/ceph-backport.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/ceph-backport.sh b/src/script/ceph-backport.sh index 051e0b688c5..f4f88499409 100755 --- a/src/script/ceph-backport.sh +++ b/src/script/ceph-backport.sh @@ -1570,6 +1570,7 @@ redmine_url="$(number_to_url "redmine" "${issue}")" debug "Considering Redmine issue: $redmine_url - is it in the Backport tracker?" remote_api_output="$(curl --silent "${redmine_url}.json")" +debug $remote_api_output tracker="$(echo "$remote_api_output" | jq -r '.issue.tracker.name')" if [ "$tracker" = "Backport" ]; then debug "Yes, $redmine_url is a Backport issue" |