# File lib/hammer_cli_csv/activation_keys.rb, line 121 def update_groups(activationkey, line) if line[SYSTEMGROUPS] && line[SYSTEMGROUPS] != '' # TODO: note that existing system groups are not removed CSV.parse_line(line[SYSTEMGROUPS], {:skip_blanks => true}).each do |name| @api.resource(:host_collections)\ .call(:add_activation_keys, { 'id' => katello_hostcollection(line[ORGANIZATION], :name => name), 'activation_key_ids' => [activationkey['id']] }) end end end