foreman-tasks 4.1.0 → 4.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a995bfa758def81b00f25d1407ad36c4834473c8aab03786b71b54092329168a
|
4
|
+
data.tar.gz: d1da5ab84d17f85fbf8911b9cfd3fa6fc7d90e2958fe08efefbe20fccd5b2d7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c977430ad99bf4e9cd92cb7371005d9b79be87d48a689bda6dae3f24a134e334b01583cc11a93186651c8271bd46946c86472ef408606b6e4758add63df20c7
|
7
|
+
data.tar.gz: '018184c654bee02017f2bd9da163eef278ee4515e39adcef3dc1338cffb381f5c60f986177450537c80ddedae8f61162e4bf55d0bfa6838b3eb554aba5f52522'
|
@@ -51,7 +51,7 @@ module ForemanTasks
|
|
51
51
|
In case :type = 'resource', what resource id we're searching the tasks for
|
52
52
|
DESC
|
53
53
|
param :action_types, [String], :desc => <<-DESC
|
54
|
-
Return just tasks of given action type, e.g. ["Actions::Katello::Repository::Synchronize"]
|
54
|
+
Return just tasks of given action type, e.g. `["Actions::Katello::Repository::Synchronize"]`
|
55
55
|
DESC
|
56
56
|
param :active_only, :bool
|
57
57
|
param :page, String
|
@@ -219,7 +219,7 @@ module Actions
|
|
219
219
|
|
220
220
|
def get_proxy_data(response)
|
221
221
|
response['actions'].detect { |action| action.fetch('input', {})['task_id'] == task.id }
|
222
|
-
.try(:fetch, 'output', {})
|
222
|
+
.try(:fetch, 'output', {}) || {}
|
223
223
|
end
|
224
224
|
|
225
225
|
def proxy_version(proxy)
|
@@ -14,6 +14,9 @@ module ForemanTasks
|
|
14
14
|
Support::DummyProxyAction.any_instance.stubs(:with_batch_triggering?).returns(batch_triggering)
|
15
15
|
Support::DummyProxyAction.reset
|
16
16
|
RemoteTask.any_instance.stubs(:proxy).returns(Support::DummyProxyAction.proxy)
|
17
|
+
Setting.stubs(:[]).with('foreman_tasks_proxy_action_retry_interval')
|
18
|
+
Setting.stubs(:[]).with('foreman_tasks_proxy_action_retry_count')
|
19
|
+
Setting.stubs(:[]).with('foreman_tasks_proxy_batch_trigger')
|
17
20
|
@action = create_and_plan_action(Support::DummyProxyAction,
|
18
21
|
Support::DummyProxyAction.proxy,
|
19
22
|
'Proxy::DummyAction',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Nečas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dynflow
|