Project

General

Profile

« Previous | Next » 

Revision 981f4f20

Added by Rahul Bajaj almost 6 years ago

Fixes #23872 - fix the missing values (#561)

View differences:

lib/hammer_cli_katello/host_kickstart_repository_options.rb
def fetch_repo_id(cv_id, env_id, repo_name)
repo_resource = HammerCLIForeman.foreman_resource(:repositories)
index_options = {
"content_view_id" => cv_id,
"environment_id" => env_id,
"name" => repo_name
:content_view_id => cv_id,
:environment_id => env_id,
:name => repo_name
}
repos = repo_resource.call(:index, index_options)["results"]
if repos.empty?

Also available in: Unified diff