Skip to content

Commit

Permalink
Fixes #25199 - Include value for ATTACHED & QUANTITY (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
vision2910 authored and akofink committed Dec 3, 2018
1 parent cfce886 commit 502ad73
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/hammer_cli_katello/activation_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,20 @@ class SubscriptionsCommand < HammerCLIKatello::ListCommand
field :id, _("ID")
field :product_name, _("Name")
field :format_consumed, _("Attached")
field :amount, _("Quantity")
field :quantity_attached, _("Quantity")
field :start_date, _("Start Date"), Fields::Date
field :end_date, _("End Date"), Fields::Date
field :support_level, _("Support")
field :contract_number, _("Contract")
field :account_number, _("Account")
end

def extend_data(data)
data["format_consumed"] = _("#{data['consumed']} out of "\
"#{data['quantity'] == -1 ? 'Unlimited' : data['quantity']}")
data
end

option '--id', "ACTIVATION_KEY_ID", _("ID of the activation key"),
attribute_name: :option_activation_key_id
option '--name', "ACTIVATION_KEY_NAME", _("Activation key name to search by"),
Expand Down

0 comments on commit 502ad73

Please sign in to comment.