From 746596481b6ff5d327a3054882a644fc2557ceeb Mon Sep 17 00:00:00 2001 From: neillturner Date: Wed, 22 Nov 2017 14:44:23 +0000 Subject: [PATCH] bolt --- lib/kitchen/provisioner/puppet_bolt.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/kitchen/provisioner/puppet_bolt.rb b/lib/kitchen/provisioner/puppet_bolt.rb index 6685853..26f04fb 100644 --- a/lib/kitchen/provisioner/puppet_bolt.rb +++ b/lib/kitchen/provisioner/puppet_bolt.rb @@ -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