From 83f296f41d7ea296142ef7ce364e03b4d4765dc2 Mon Sep 17 00:00:00 2001 From: Karl Rister Date: Fri, 28 Jun 2024 09:33:02 -0500 Subject: [PATCH] make the quay api url slightly more flexible by removing a hard coded value (tag) --- rickshaw-run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rickshaw-run b/rickshaw-run index bb6a981c..14e81c5b 100755 --- a/rickshaw-run +++ b/rickshaw-run @@ -1073,7 +1073,7 @@ sub source_container_image { my $query_cmd = 'curl --silent' . ' -X GET -H "Authorization: Bearer ' . $workshop_refresh_timestamps_token . '"' . ' "' . $workshop_refresh_timestamps_api_url . - '?limit=1&specificTag=' . $workshop_args[$x]{'tag'} . '"'; + '/tag/?limit=1&specificTag=' . $workshop_args[$x]{'tag'} . '"'; ($query_cmd, my $query_status, my $query_rc) = run_cmd($query_cmd); chomp($query_status); @@ -1101,7 +1101,7 @@ sub source_container_image { my $refresh_cmd = 'curl --silent' . ' -X PUT -H "Authorization: Bearer ' . $workshop_refresh_timestamps_token . '"' . ' -H "Content-type: application/json" -d \'{ "expiration": ' . $refresh_timestamp . ' }\'' . - ' ' . $workshop_refresh_timestamps_api_url . $workshop_args[$x]{'tag'}; + ' ' . $workshop_refresh_timestamps_api_url . '/tag/' . $workshop_args[$x]{'tag'}; ($refresh_cmd, my $refresh_status, my $refresh_rc) = run_cmd($refresh_cmd); chomp($refresh_status);