Project

General

Profile

Bug #22981

Not able to attach a subscription to a host with hammer

Added by Anand Agrawal over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

~~
hammer host subscription --attach --subscription-id $id --quantity 1
~
~

While attaching subscription to host via above hammer command, it fails with below error message
~~
Failed to attach subscriptions to the host:
Task a5c8d982-3c25-4d21-b8e9-0ba3feae435d: ArgumentError: comparison of String with 0 failed
~
~

Same thing happens, with API when quantity is passed as "1"

Associated revisions

Revision 49a3e258 (diff)
Added by aagrawal over 3 years ago

Fixes #22981 - Not able to attach subscription with hammer

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7253 added

#2 Updated by Anand Agrawal over 3 years ago

  • Bugzilla link set to 1559302

#3 Updated by John Mitsch over 3 years ago

  • Legacy Backlogs Release (now unused) set to 338

#4 Updated by Anonymous over 3 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF