lib/bolt/config.rb in bolt-1.33.0 vs lib/bolt/config.rb in bolt-1.34.0

- old
+ new

@@ -31,11 +31,11 @@ end class Config attr_accessor :concurrency, :format, :trace, :log, :puppetdb, :color, :save_rerun, :transport, :transports, :inventoryfile, :compile_concurrency, :boltdir, - :puppetfile_config, :plugins, :plugin_hooks + :puppetfile_config, :plugins, :plugin_hooks, :future attr_writer :modulepath TRANSPORT_OPTIONS = %i[password run-as sudo-password extensions private-key tty tmpdir user connect-timeout disconnect-timeout cacert token-file service-url interpreters file-protocol smb-port realm].freeze @@ -161,9 +161,11 @@ @save_rerun = data['save-rerun'] if data.key?('save-rerun') # Plugins are only settable from config not inventory so we can overwrite @plugins = data['plugins'] if data.key?('plugins') @plugin_hooks.merge!(data['plugin_hooks']) if data.key?('plugin_hooks') + + @future = data['future'] == true %w[concurrency format puppetdb color transport].each do |key| send("#{key}=", data[key]) if data.key?(key) end