Closed djberg96 closed 6 years ago
Looks like we can consolidate the changes into one common method like id_string_to_url
@djberg96 can you add link https://bugzilla.redhat.com/show_bug.cgi?id=1497175 to the commit comment so that the BZ gets the notification?
@bzwei Ok, refactored into a common method.
When the
build_id_string
method was refactored, I accidentally introduced a bug in theTemplateDeploymentService#delete_associated_resources
method. That method uses a combination ofbuild_id_string
anddelete_by_id
. The problem is that both methods append anapi-version
string, resulting in an invalid URL.This PR modifies the
get_by_id
anddelete_by_id
methods so that the api-version string is only appended if it's not already present.Addresses https://bugzilla.redhat.com/show_bug.cgi?id=1497175