Hammer-CLI-Katello doesn't search for lifecycle-environments properly when trying to promote.
We have hit an issue where Hammers content-view version promote command responded with a NoMethodError (undefined method `' for nil:NilClass). Upon further inspection it seems to be because it's only searching for the content-view from the latest 20 content-view versions. If the content-view with the life cycle environment is not within these 20 it breaks with this error.
#1 Updated by Zach Huntington-Meath about 3 years ago
The command in question was:
hammer -d --username --password * --server my-katello.com content-view version promote --organization "Sat6-CI" --content-view "Satellite 6.2 RHEL7" --to-lifecycle-environment "6.2.9-7.0" --from-lifecycle-environment QA --force