Project

General

Profile

Revision bf81b9cf

Added by Thomas McKay over 8 years ago

test-fixes - setup_test clean except for manifest upload repeat

View differences:

lib/hammer_cli_csv/lifecycle_environments.rb
59 59
      @api.resource(:organizations).call(:index, {'per_page' => 999999})['results'].each do |organization|
60 60
        @api.resource(:environments).call(:index, {
61 61
                                   'per_page' => 999999,
62
                                   'organization_id' => katello_organization(:name => organization['name'])
62
                                   'organization_id' => katello_organization(:name => organization['name']),
63
                                   'library' => true
63 64
                                 })['results'].each do |environment|
64 65
          @existing[organization['name']] ||= {}
65 66
          @existing[organization['name']][environment['name']] = environment['id'] if environment
......
89 90
        else
90 91
          print "Updating environment '#{name}'..." if option_verbose?
91 92
          @api.resource(:environments).call(:update, {
92
                                      'id' => katello_environment(line[ORGANIZATION], :name => label),
93
                                      'id' => @existing[line[ORGANIZATION]][name],
93 94
                                      'name' => name,
94 95
                                      'new_name' => name,
95 96
                                      'organization_id' => katello_organization(:name => line[ORGANIZATION]),

Also available in: Unified diff