Project

General

Profile

Revision c4dbc7a3

Added by Thomas McKay over 7 years ago

updates to tests and functionality

+ added export containers
+ export content-view-filters erratum and rpm types
+ 'hammer csv import' now works from --dir https://somewhere
+ 'hammer csv import' tests and fixes

View differences:

lib/hammer_cli_csv/organizations.rb
37 37
      end
38 38

  
39 39
      def create_organizations_from_csv(line)
40
        return if option_organization && line[ORGANIZATION] != option_organization
41

  
42 40
        line[COUNT].to_i.times do |number|
43 41
          name = namify(line[NAME], number)
42
          return if option_organization && name != option_organization
44 43
          label = namify(line[LABEL], number)
45 44
          if !@existing.include? name
46 45
            print "Creating organization '#{name}'... " if option_verbose?

Also available in: Unified diff