Project

General

Profile

Revision f83015fe

Added by Thomas McKay almost 6 years ago

fixes #17820 - check available sub quantity < 0

View differences:

lib/hammer_cli_csv/utils/subscriptions.rb
169 169
        if !subs_quantity.nil? && !subs_quantity.empty? && subs_quantity != 'Automatic'
170 170
          subs_quantity = subs_quantity.to_i
171 171
          matches.select! do |subscription|
172
            subscription['available'] == -1 || subs_quantity <= subscription['available']
172
            subscription['available'] < 0 || subs_quantity <= subscription['available']
173 173
          end
174 174
        end
175 175
        debug_subscriptions("matches_by_quantity: #{subs_quantity}", matches)

Also available in: Unified diff