Skip to content

Commit

Permalink
bolt
Browse files Browse the repository at this point in the history
  • Loading branch information
neillturner committed Nov 22, 2017
1 parent e10469a commit 7465964
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/kitchen/provisioner/puppet_bolt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,11 @@ def run_command
protected

def bolt_commands_to_run
[]
config[:bolt_commands].is_a?(Array) ? config[:bolt_commands] : [config[:bolt_commands]] if config[:bolt_commands]
if config[:bolt_commands]
config[:bolt_commands].is_a?(Array) ? config[:bolt_commands] : [config[:bolt_commands]]
else
[]
end
end

def bolt_platform
Expand Down

0 comments on commit 7465964

Please sign in to comment.