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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f549590758f3f3fd3c7037360ce3b048fd5e57e0
|
4
|
+
data.tar.gz: bc556259ed4c30e89ae25eb756a5a89f62dff6b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
149
|
-
|
150
|
-
|
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(
|
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
|
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.
|
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:
|
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
|