Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Fix Connection Logger Initialization (#523)
Browse files Browse the repository at this point in the history
* Fix connection logger initialization

* Prepare 7.0.2
  • Loading branch information
aaron-lane authored Apr 24, 2023
1 parent 3d20d60 commit 63128dc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ and this project adheres to

## [Unreleased][unreleased]

## [7.0.2] - 2023-04-24

### Fixed

- Transport connections no longer override provided loggers.

## [7.0.1] - 2023-04-20

### Fixed
Expand Down Expand Up @@ -819,7 +825,8 @@ Free-As-In-Beer
- Initial release

[unreleased]:
https://github.com/newcontext/kitchen-terraform/compare/v7.0.1...HEAD
https://github.com/newcontext/kitchen-terraform/compare/v7.0.2...HEAD
[7.0.2]: https://github.com/newcontext/kitchen-terraform/compare/v7.0.1...v7.0.2
[7.0.1]: https://github.com/newcontext/kitchen-terraform/compare/v7.0.0...v7.0.1
[7.0.0]: https://github.com/newcontext/kitchen-terraform/compare/v6.1.0...v7.0.0
[6.1.0]: https://github.com/newcontext/kitchen-terraform/compare/v6.0.0...v6.1.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ example.
---

```sh
gem install kitchen-terraform --version 7.0.1
gem install kitchen-terraform --version 7.0.2
```

---
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/terraform/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def temporarily_override(version:)

# @api private
def value
self.value = ::Gem::Version.new "7.0.1" if not @value
self.value = ::Gem::Version.new "7.0.2" if not @value
@value
end

Expand Down
5 changes: 2 additions & 3 deletions lib/kitchen/transport/terraform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ def initialize(config = {})
# @return [Hash] hash of connection options.
# @api private
def connection_options(data)
opts = super
opts = super.merge! data

opts.merge! data
opts.merge! logger: logger
opts.merge! logger: logger if !opts.key? :logger

opts
end
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/kitchen/terraform/version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
end

let :version do
::Gem::Version.new "7.0.1"
::Gem::Version.new "7.0.2"
end

describe ".assign_plugin_version" do
Expand Down
2 changes: 1 addition & 1 deletion spec/support/kitchen/terraform/configurable_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

describe "@plugin_version" do
it "equals the gem version" do
expect(described_class.instance_variable_get(:@plugin_version)).to eq "7.0.1"
expect(described_class.instance_variable_get(:@plugin_version)).to eq "7.0.2"
end
end

Expand Down

0 comments on commit 63128dc

Please sign in to comment.