Project

General

Profile

Actions

Bug #22981

closed

Not able to attach a subscription to a host with hammer

Added by Anand Agrawal about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
easy
Triaged:
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"

Actions

Also available in: Atom PDF