Skip to content

Commit 5207155

Browse files
authored
Merge pull request #211 from lucywyman/maint-set-default-parameters
(maint) Use parameters method instead of json['parameters']
2 parents 2edc35d + 5fc6bcd commit 5207155

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/puppet-strings/yard/code_objects/task.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def source
4343

4444
def parameters
4545
parameters = []
46-
statement.json['parameters'].each do |name,props|
46+
statement.parameters.each do |name,props|
4747
parameters.push({ name: name.to_s,
4848
tag_name: 'param',
4949
text: props['description'] || "",

spec/spec_helper_acceptance.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
options[:port] = node_config.dig('ssh', 'port') unless node_config.dig('ssh', 'port').nil?
2626
options[:keys] = node_config.dig('ssh', 'private-key') unless node_config.dig('ssh', 'private-key').nil?
2727
options[:password] = node_config.dig('ssh', 'password') unless node_config.dig('ssh', 'password').nil?
28-
options[:verify_host_key] = Net::SSH::Verifiers::Null.new unless node_config.dig('ssh', 'host-key-check').nil?
28+
options[:verify_host_key] = Net::SSH::Verifiers::Never.new unless node_config.dig('ssh', 'host-key-check').nil?
2929
host = if ENV['TARGET_HOST'].include?(':')
3030
ENV['TARGET_HOST'].split(':').first
3131
else

0 commit comments

Comments
 (0)