Skip to content

Commit

Permalink
Update mysql_database resource query action. (#679)
Browse files Browse the repository at this point in the history
* Update mysql_database.rb, fixing query action.
  • Loading branch information
jhou4 authored Feb 9, 2022
1 parent e2ff2da commit a66b254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.

## Unreleased

- Allow run_query to take a database name as an argument

## 11.0.3 - *2022-02-02*

- Remove delivery and move to calling RSpec directly via a reusable workflow
Expand Down
2 changes: 1 addition & 1 deletion resources/mysql_database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
end

action :query do
run_query(new_resource.sql, nil)
run_query(new_resource.sql, new_resource.database_name)
end

load_current_value do
Expand Down

0 comments on commit a66b254

Please sign in to comment.