hammer_cli_katello 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2708ed7f94bc63930cdbfbf1e6b6910224b9ac947a59beb6fd67325de8d13df5
4
- data.tar.gz: 8e1658c27cab54ba5d45d68b9a2e9eea54df34db5be3316f090ef7bce073f7a3
3
+ metadata.gz: 9309f47ea0b63ca56cdacd94e195798ee4c3afa62fde8c5a1cbcd76e3c604913
4
+ data.tar.gz: efb2ffb0a999161323e0329dd970f76bff1dfcc34c705f4d76e24b86586620ee
5
5
  SHA512:
6
- metadata.gz: e69050801a50bef32379cce5b0f12b71a2308dac7bd6452a512f077e45b6fcd7e492cc75ed9eac8b425552884bd814857f3394c8aebd919553e54c10a9b5bb9b
7
- data.tar.gz: cf6ca14b9f61a2f05d310084f2af7207a2a6aba887cd6a69c9a3ff1da1ce3670b450e45645a6d36affdabc9f2532d8a0baeda20e7f722bedfdbbd96fcc9ba086
6
+ metadata.gz: 0a6a670b61cb35738beca14f5575025cca2b5203de26f7274e6077c822ffb5c66323666742d2bf58467f30d86f017a94a14eb4963e0bc2f831789236ed0a0721
7
+ data.tar.gz: cc2d3bdd3202760ffd3952a03e7c2bfec9edd7c5fa66f4265929a568c7c859becd134b6158108214e69b44e542bfd9af7a1b9d5aca4838273f6a22deb2031088
@@ -84,7 +84,18 @@ module HammerCLIKatello
84
84
  private def old_unused_versions
85
85
  return @old_unused_versions if @old_unused_versions
86
86
 
87
- all_versions = index(:content_view_versions, :content_view_id => options['option_id'])
87
+ all_versions = []
88
+ per_page = 100
89
+ page = 1
90
+
91
+ loop do
92
+ versions = index(:content_view_versions, :content_view_id => options['option_id'],
93
+ :per_page => per_page, :page => page)
94
+ all_versions << versions
95
+ break if versions.count < per_page
96
+ page += 1
97
+ end
98
+ all_versions.flatten!
88
99
  all_versions.sort_by! { |v| [v['major'], v['minor']] }
89
100
  @old_unused_versions = all_versions.select do |v|
90
101
  v["environments"].empty? &&
@@ -1,5 +1,5 @@
1
1
  module HammerCLIKatello
2
2
  def self.version
3
- @version ||= Gem::Version.new('1.7.0')
3
+ @version ||= Gem::Version.new('1.7.1')
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Price
@@ -32,10 +32,10 @@ authors:
32
32
  - Tom McKay
33
33
  - Walden Raines
34
34
  - Zach Huntington-Meath
35
- autorequire:
35
+ autorequire:
36
36
  bindir: bin
37
37
  cert_chain: []
38
- date: 2022-11-09 00:00:00.000000000 Z
38
+ date: 2023-01-05 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: hammer_cli_foreman
@@ -513,7 +513,7 @@ homepage: https://github.com/Katello/hammer-cli-katello
513
513
  licenses:
514
514
  - GPL-3.0
515
515
  metadata: {}
516
- post_install_message:
516
+ post_install_message:
517
517
  rdoc_options: []
518
518
  require_paths:
519
519
  - lib
@@ -528,8 +528,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
528
528
  - !ruby/object:Gem::Version
529
529
  version: '0'
530
530
  requirements: []
531
- rubygems_version: 3.1.6
532
- signing_key:
531
+ rubygems_version: 3.3.26
532
+ signing_key:
533
533
  specification_version: 4
534
534
  summary: Katello commands for Hammer
535
535
  test_files: