foreman_template_tasks 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: f5eff5ce29fff335a4fa0b9dac6d560e63df62c7cd9fa5c4b840c60dbe531395
4
- data.tar.gz: 38f816dafb3024f06a1e05e572aebc95a248f0c7180d40e172f06ead59d7625b
3
+ metadata.gz: 9d5daab7d4455aab39b89bb89059ca0c07c04fe2b4ac1328d49c3c541a0aa57b
4
+ data.tar.gz: 482d611ef4338e200ae3ab98c26e7758c36c3124fbc6305999279c21e85f5c04
5
5
  SHA512:
6
- metadata.gz: 6eaa275be6b95044235a179515d23f05ebcc4c8277676dcc75e050c81bb06193bbe49db38cb85ed7d6e4c7acc119be6f4472b040c205da70f3473576d4258dc8
7
- data.tar.gz: 360d937f06920c91bbe618b231e26e345a07d49cae17851a2847b9719634d292fac00cb1d13f670eca1ecb212b3c38596f6815c38c9744370a47ebca02d332b7
6
+ metadata.gz: f38f2c5174cc91c3bbc6cc3b9f5eec73d56cf933a63910f6cabd4fc97c25659d612f71347012144467d6ea1596e6acc83c725961d0657f8fbc2f93c28ae830ab
7
+ data.tar.gz: c9cb8faacd15d001a7ae4cb5543d32c0d6324b9629b61cec146734789289fa11e0292cc2c64563eb96d5724a1bdffd90a2351b5bc1fb1b39d78211908971c031
@@ -21,6 +21,9 @@ module Actions
21
21
  end
22
22
 
23
23
  def _plan(context: nil, **task_params)
24
+ # Apparently this can happen?
25
+ task_params = task_params[:task_params] if task_params.key? :task_params
26
+
24
27
  input.update context: context
25
28
  input.update task_params: task_params
26
29
 
@@ -55,7 +58,7 @@ module Actions
55
58
  end
56
59
 
57
60
  if changes.any?
58
- out += "\n\nTemplates changed:\n- " + changes.map { |ch| "#{ch[:type].camel_case} | #{ch[:name]}" }.join("\n- ")
61
+ out += "\n\nTemplates changed:\n- " + changes.map { |ch| "#{ch[:type].camelcase} | #{ch[:name]}" }.join("\n- ")
59
62
  end
60
63
 
61
64
  out
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanTemplateTasks
4
- VERSION = '0.2.0'.freeze
4
+ VERSION = '0.2.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_template_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Olofsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-08 00:00:00.000000000 Z
11
+ date: 2019-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman-tasks