lib/bolt/config.rb in bolt-1.6.0 vs lib/bolt/config.rb in bolt-1.7.0

- old
+ new

@@ -144,10 +144,15 @@ end # Expand paths relative to the Boltdir. Any settings that came from the # CLI will already be absolute, so the expand will be skipped. if data.key?('modulepath') - @modulepath = data['modulepath'].split(File::PATH_SEPARATOR).map do |moduledir| + moduledirs = if data['modulepath'].is_a?(String) + data['modulepath'].split(File::PATH_SEPARATOR) + else + data['modulepath'] + end + @modulepath = moduledirs.map do |moduledir| File.expand_path(moduledir, @boltdir.path) end end @inventoryfile = File.expand_path(data['inventoryfile'], @boltdir.path) if data.key?('inventoryfile')