foreman_rh_cloud 5.0.45 → 5.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbc11fcfbfbe774f2a986830bf4b3fadd2cda0b0cd1bdba8bb8d00a48aebb3a5
4
- data.tar.gz: d6afd01efe2895d78862f26e5fb61e041aea305e43f8ecdd069d21694b1beceb
3
+ metadata.gz: 3ea5b770cae26d383e7b4809c1e00fbb177561b5a32f15cbb6422cff7b793ee5
4
+ data.tar.gz: acceb56161f35e3a9edccccb9dfe666801f5856dea00b5e0d1c63a20cee89228
5
5
  SHA512:
6
- metadata.gz: 3e2a6a6da7e06650c43b0ff60101afd82d5f207f0e0ed104ef98d57bc868ca17130ebb9953d53c5216597b679c10644936d27347f1e6cf00c0b8b5de90c0bbff
7
- data.tar.gz: cc2cccfd02033d36fb590ec0ebb963ae07dd120b04cd02e0c6a87bc0d7630a40ef6dc17d173764df7a11380f2e8c3569f3516c490d325cf767501574c6230785
6
+ metadata.gz: 609894df0bb5c2e00d960d8c8be2d9c3938a36379fa447a6bf72fa40b5eb53113f84dd038ba40fa36cd833f975e8f9de589afc7a6f47b4942bf5a6e4aa2d856c
7
+ data.tar.gz: 3e620d13c72b977cd3ebdf2f5ad74cf114b23c02db3746c388c3b6788e8aa501d72743f6eaff9588c7cbdbda0a56a1bae2c48da24d69f92742e1e70ee9581763
@@ -1,3 +1,3 @@
1
1
  module ForemanRhCloud
2
- VERSION = '5.0.45'.freeze
2
+ VERSION = '5.0.46'.freeze
3
3
  end
@@ -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
- @uid = cp_owner_id(organization)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foreman_rh_cloud",
3
- "version": "5.0.45",
3
+ "version": "5.0.46",
4
4
  "description": "Inventory Upload =============",
5
5
  "main": "index.js",
6
6
  "scripts": {
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.45
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-13 00:00:00.000000000 Z
11
+ date: 2023-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello