app/lib/actions/proxy_action.rb in foreman-tasks-4.1.0 vs app/lib/actions/proxy_action.rb in foreman-tasks-4.1.1
- old
+ new
@@ -217,10 +217,10 @@
suspend
end
def get_proxy_data(response)
response['actions'].detect { |action| action.fetch('input', {})['task_id'] == task.id }
- .try(:fetch, 'output', {})
+ .try(:fetch, 'output', {}) || {}
end
def proxy_version(proxy)
match = proxy.statuses[:version].version['version'].match(/(\d+)\.(\d+)\.(\d+)/)
{ :major => match[1].to_i, :minor => match[2].to_i, :patch => match[3].to_i }