hammer_cli_foreman_virt_who_configure 0.0.8 → 0.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36e2261f8c32cd0906a348f9920af4f7cbd8acd74ad7c78447c48e020a42a925
|
4
|
+
data.tar.gz: cd292789c8ceea3321fb0a091ba190dbe489f2fcc4b7937ba35a58698748af0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d71a9bf91cde3e5840bf83b4ed13cf00f20ccc5b670fc601b9cce0728806f66bab53ee0b8a5c9a8a5c7b0811648dd3dbc3558f238b2f1055754a37a291814ab2
|
7
|
+
data.tar.gz: 93dfa03a8a0fa04c0fca4a90c4f7352d8d949a2862ae7f18cd9937815aec74cca48c99e1a724e3eed7e5c92c4f02d47e6f61d7804756a609bf1cc03ff52a0799
|
@@ -43,6 +43,12 @@ module HammerCLIForemanVirtWhoConfigure
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
def self.validate_hypervisor_options(conf)
|
47
|
+
options = conf["hypervisor_type"] == 'kubevirt' ? %w(hypervisor_server hypervisor_username) : %w(kubeconfig_path)
|
48
|
+
options.append("prism_flavor", "ahv_update_interval", "ahv_internal_debug") unless conf["hypervisor_type"] == 'ahv'
|
49
|
+
conf.delete_if { |k, v| options.include?(k) }
|
50
|
+
end
|
51
|
+
|
46
52
|
class ListCommand < HammerCLIForeman::ListCommand
|
47
53
|
output do
|
48
54
|
field :id, _('Id')
|
@@ -70,6 +76,9 @@ module HammerCLIForemanVirtWhoConfigure
|
|
70
76
|
field :hypervisor_server, _('Hypervisor server')
|
71
77
|
field :hypervisor_username, _('Hypervisor username')
|
72
78
|
field :kubeconfig_path, _('Configuration file'), Fields::Field, :hide_blank => true
|
79
|
+
field :prism_flavor, _('AHV Prism flavor'), Fields::Field, :hide_blank => true
|
80
|
+
field :ahv_update_interval, _('AHV update frequency'), Fields::Field, :hide_blank => true
|
81
|
+
field :ahv_internal_debug, _('Enable AHV debug'), Fields::Boolean
|
73
82
|
field :_status, _('Status')
|
74
83
|
end
|
75
84
|
label _('Schedule') do
|
@@ -112,7 +121,7 @@ module HammerCLIForemanVirtWhoConfigure
|
|
112
121
|
else
|
113
122
|
conf['blacklist'] ||= " "
|
114
123
|
end
|
115
|
-
conf
|
124
|
+
VirtWhoConfig.validate_hypervisor_options(conf)
|
116
125
|
end
|
117
126
|
|
118
127
|
build_options
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_foreman_virt_who_configure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomáš Strachota
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hammer_cli
|
@@ -100,13 +100,13 @@ signing_key:
|
|
100
100
|
specification_version: 4
|
101
101
|
summary: Plugin for configuring Virt Who
|
102
102
|
test_files:
|
103
|
-
- test/functional/test_helper.rb
|
104
|
-
- test/functional/config/config_create_test.rb
|
105
|
-
- test/functional/config/config_deploy_test.rb
|
106
|
-
- test/functional/config/config_list_test.rb
|
107
|
-
- test/functional/config/config_fetch_test.rb
|
108
103
|
- test/functional/config/config_info_test.rb
|
109
104
|
- test/functional/config/config_update_test.rb
|
105
|
+
- test/functional/config/config_list_test.rb
|
106
|
+
- test/functional/config/config_deploy_test.rb
|
107
|
+
- test/functional/config/config_fetch_test.rb
|
108
|
+
- test/functional/config/config_create_test.rb
|
109
|
+
- test/functional/test_helper.rb
|
110
110
|
- test/unit/system_caller_test.rb
|
111
|
-
- test/data/1.15/foreman_api.json
|
112
111
|
- test/test_helper.rb
|
112
|
+
- test/data/1.15/foreman_api.json
|