Project

General

Profile

Actions

Bug #16473

open

Errors not reported when adding a subscription to a content host

Added by John Mitsch over 7 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

To reproduce use this diff


diff --git a/app/lib/katello/resources/candlepin.rb b/app/lib/katello/resources/candlepin.rb
index 0f31718..816f303 100644
--- a/app/lib/katello/resources/candlepin.rb
+++ b/app/lib/katello/resources/candlepin.rb
@@ -174,6 +174,7 @@ module Katello
           end

           def consume_entitlement(uuid, pool, quantity = nil)
+            fail "hi" 
             uri = join_path(path(uuid), 'entitlements') + "?pool=#{pool}" 
             uri += "&quantity=#{quantity}" if quantity && quantity > 0
             response = self.post(uri, "", self.default_headers).body

and add a subscription to a content host. Note that the UI says "Subscription added successfuly" but the subscription was actually not added.

Actions #1

Updated by Eric Helms over 7 years ago

  • Assignee set to Eric Helms
  • translation missing: en.field_release set to 162
Actions #2

Updated by Justin Sherrill over 7 years ago

  • translation missing: en.field_release changed from 162 to 114
Actions

Also available in: Atom PDF