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 +4 -4
- data/lib/hammer_cli_katello/content_view_purge.rb +12 -1
- data/lib/hammer_cli_katello/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9309f47ea0b63ca56cdacd94e195798ee4c3afa62fde8c5a1cbcd76e3c604913
|
4
|
+
data.tar.gz: efb2ffb0a999161323e0329dd970f76bff1dfcc34c705f4d76e24b86586620ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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? &&
|
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.
|
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:
|
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.
|
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:
|