Project

General

Profile

Revision 8c7ba4af

Added by Thomas McKay about 8 years ago

updates to csv

fixed lifecycle-env

ship it

View differences:

lib/hammer_cli_csv/activation_keys.rb
100 100
            print "Creating activation key '#{name}'..." if option_verbose?
101 101
            activationkey = @api.resource(:activation_keys).call(:create, {
102 102
                                        'name' => name,
103
                                        'environment_id' => katello_environment(line[ORGANIZATION],
103
                                        'environment_id' => lifecycle_environment(line[ORGANIZATION],
104 104
                                                                                :name => line[ENVIRONMENT]),
105 105
                                        'content_view_id' => katello_contentview(line[ORGANIZATION],
106 106
                                                                                 :name => line[CONTENTVIEW]),
......
113 113
            activationkey = @api.resource(:activation_keys).call(:update, {
114 114
                                          'id' => @existing[line[ORGANIZATION]][name],
115 115
                                          'name' => name,
116
                                          'environment_id' => katello_environment(line[ORGANIZATION],
116
                                          'environment_id' => lifecycle_environment(line[ORGANIZATION],
117 117
                                                                                  :name => line[ENVIRONMENT]),
118 118
                                          'content_view_id' => katello_contentview(line[ORGANIZATION],
119 119
                                                                                   :name => line[CONTENTVIEW]),

Also available in: Unified diff