Project

General

Profile

Revision 90d0b5c8

Added by Thomas McKay over 8 years ago

corrected api errors in roles csv

View differences:

lib/hammer_cli_csv/base.rb
253 253
                                               'search' => "role=\"#{role}\""
254 254
                                             })['results']
255 255
      filters.each do |filter|
256
        return filter['id'] if filter['resource_type'] == resource && filter['search'] == search
256
        resource_type = filter['resource_type'].split(':')[-1] # To remove "Katello::" when present
257
        return filter['id'] if resource_type == resource && filter['search'] == search
257 258
      end
258 259

  
259 260
      nil

Also available in: Unified diff