Project

General

Profile

Revision e9e0ab3a

Added by Thomas McKay over 5 years ago

fixes #16999 - process portal creation

added temporary travis.yml change

View differences:

.travis.yml
4 4
  - 2.1
5 5
  - 2.2
6 6
before_install:
7
  - echo "gem 'hammer_cli', :git => 'https://github.com/theforeman/hammer-cli.git'" >> Gemfile.local
7 8
  - gem update bundler
lib/hammer_cli_csv/subscriptions.rb
152 152
            api = rest_client("/subscription/consumers/#{manifest['uuid']}/entitlements?pool=#{subscription['id']}&quantity=#{line[SUBS_QUANTITY]}")
153 153
            results = api.post({}.to_json)
154 154
            subscription['quantity'] -= line[SUBS_QUANTITY]
155
            break
155
            return
156 156
          end
157 157
        end
158
        print _('subscription unavailable...')
158 159
      end
159 160

  
160 161
      def get_available_subscriptions(manifest)
......
190 191
              'system.certificate_version' => '3.2'
191 192
            }
192 193
          }
193
          manifest = api.post(body.to_json,
194
          results = api.post(body.to_json,
194 195
              {'accept' => 'json', 'content_type' => 'application/json'}
195 196
          )
197
          manifest = JSON.parse(results)
196 198
          manifest['subscriptions'] = []
197 199
          @manifests[line[ORGANIZATION]][:manifest] = manifest
198 200
        end

Also available in: Unified diff