foreman_rh_cloud 5.0.45 → 5.0.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/tasks/hybrid_cloud.rake +6 -5
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ea5b770cae26d383e7b4809c1e00fbb177561b5a32f15cbb6422cff7b793ee5
|
4
|
+
data.tar.gz: acceb56161f35e3a9edccccb9dfe666801f5856dea00b5e0d1c63a20cee89228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 609894df0bb5c2e00d960d8c8be2d9c3938a36379fa447a6bf72fa40b5eb53113f84dd038ba40fa36cd833f975e8f9de589afc7a6f47b4942bf5a6e4aa2d856c
|
7
|
+
data.tar.gz: 3e620d13c72b977cd3ebdf2f5ad74cf114b23c02db3746c388c3b6788e8aa501d72743f6eaff9588c7cbdbda0a56a1bae2c48da24d69f92742e1e70ee9581763
|
data/lib/tasks/hybrid_cloud.rake
CHANGED
@@ -22,9 +22,9 @@ namespace :rh_cloud do |args|
|
|
22
22
|
exit(1)
|
23
23
|
end
|
24
24
|
|
25
|
-
organization = Organization.find_by(id: ENV['org_id'].to_i) # saw this coming in as a string, so making sure it gets passed as an integer.
|
26
|
-
|
27
|
-
@
|
25
|
+
@organization = Organization.find_by(id: ENV['org_id'].to_i) # saw this coming in as a string, so making sure it gets passed as an integer.
|
26
|
+
@uid = cp_owner_id(@organization)
|
27
|
+
@hostname = ForemanRhCloud.foreman_host_name
|
28
28
|
logger.error('Organization provided does not have a manifest imported.') + exit(1) if @uid.nil?
|
29
29
|
|
30
30
|
puts 'Paste your token, output will be hidden.'
|
@@ -39,7 +39,8 @@ namespace :rh_cloud do |args|
|
|
39
39
|
|
40
40
|
def payload
|
41
41
|
{
|
42
|
-
"uid": @uid
|
42
|
+
"uid": @uid,
|
43
|
+
"display_name": "#{@hostname}+#{@organization.label}"
|
43
44
|
}
|
44
45
|
end
|
45
46
|
|
@@ -49,7 +50,7 @@ namespace :rh_cloud do |args|
|
|
49
50
|
|
50
51
|
begin
|
51
52
|
response = execute_cloud_request(
|
52
|
-
organization: organization,
|
53
|
+
organization: @organization,
|
53
54
|
method: method,
|
54
55
|
url: registrations_url,
|
55
56
|
headers: headers,
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_rh_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Red Hat Cloud team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|