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/roles.rb
72 72

  
73 73
        line[COUNT].to_i.times do |number|
74 74
          name = namify(line[NAME], number)
75
          search = namify(line[SEARCH], number) if line[SEARCH]
75
          search = line[SEARCH] ? namify(line[SEARCH], number) : nil
76 76

  
77 77
          if !@existing_roles[name]
78 78
            print "Creating role '#{name}'..." if option_verbose?

Also available in: Unified diff