redhat_access 2.2.0 → 2.2.2

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
  SHA1:
3
- metadata.gz: 56b1c25b08f98029fce262ff0cff8b2ca21b908e
4
- data.tar.gz: 14aecaa87ca12f6480d3c2a7cbdbcb8d2bc94700
3
+ metadata.gz: f549590758f3f3fd3c7037360ce3b048fd5e57e0
4
+ data.tar.gz: bc556259ed4c30e89ae25eb756a5a89f62dff6b5
5
5
  SHA512:
6
- metadata.gz: 82243a1fc7341fdc2f7d09ea28986e169bab1c37d78303b2148b43b18334b95427ec3bc2591c8ca971752b12e83f6d0593dc6f5d703a3e5be6f51ca333ad061a
7
- data.tar.gz: 0a773d5bb91b95e4c05381f880056d2ea3e90560550f41bdeaddf151fc3372f687d70e8a7193d94206ef29152f4aca10267ffcad09de62880685b44caf54322b
6
+ metadata.gz: d66ddaec1a4a713f34635e77e8763036ff3f4700a0a9f5373ed1c5fe4dbb3828fea418f13723140387b19d90c7f7f10ffc07b67b34b86b7bb33a0cbd89ee8cb7
7
+ data.tar.gz: c51df22fca8a4387d11320c6676989db6e78509375420833fb519e93da804d553bc0a82f22ba138c6916c5f1848a3ea6b7faa39dfcec736b898b5ab505647d71
@@ -145,10 +145,10 @@ module RedhatAccess
145
145
  end
146
146
 
147
147
  def get_file_data params
148
- return {
149
- :file => params[:file],
150
- :filename => params[:file].original_filename
151
- }
148
+ data = {}
149
+ data[:file] = params[:file]
150
+ data[:metadata] = params[:metadata] if params[:metadata] # include the metadata part if present
151
+ return data
152
152
  end
153
153
 
154
154
  def add_branch_to_params(params)
@@ -12,7 +12,7 @@ module RedhatAccess
12
12
  def search_by_plan_id(key, operator, value)
13
13
  insights_plan_runner = ForemanAnsible::InsightsPlanRunner.new(Organization.current, value.to_i)
14
14
  hostname_rules_relation = insights_plan_runner.hostname_rules(insights_plan_runner.playbook)
15
- host_ids = Host::Managed.where(:name => hostname_rules_relation.keys).pluck(&:id)
15
+ host_ids = Host::Managed.where(:name => hostname_rules_relation.keys).pluck(:id)
16
16
  { :conditions => " hosts.id IN(#{host_ids.join(',')})" }
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module RedhatAccess
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redhat_access
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lindani Phiri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-13 00:00:00.000000000 Z
11
+ date: 2019-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redhat_access_lib