Project

General

Profile

Bug #16473

Errors not reported when adding a subscription to a content host

Added by John Mitsch almost 3 years ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
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.

History

#1 Updated by Eric Helms over 2 years ago

  • Assignee set to Eric Helms
  • Legacy Backlogs Release (now unused) set to 162

#2 Updated by Justin Sherrill over 2 years ago

  • Legacy Backlogs Release (now unused) changed from 162 to 114

Also available in: Atom PDF