Skip to content

Commit

Permalink
Merge pull request #23 from rightscale-cookbooks/st_15_02_wrong_shell…
Browse files Browse the repository at this point in the history
…_out_method

'stdout' method for 'shell_out!' was not used to return output string.
  • Loading branch information
Lopaka Delp committed Jan 27, 2015
2 parents 63f27f7 + b834f1c commit a17610d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ machine_tag Cookbook CHANGELOG

This file is used to list changes made in each version of the machine_tag cookbook.

v1.0.9
------

- Fixed bug in run_rs_tag_util method not returning string output.

v1.0.8
------

Expand Down
2 changes: 1 addition & 1 deletion libraries/machine_tag_rightscale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def run_rs_tag_util(*args)
# we will do retries with a timeout.
Timeout.timeout(120) do
begin
shell_out!(cmd).run_command
shell_out!(cmd).run_command.stdout
rescue Mixlib::ShellOut::ShellCommandFailed => err_msg
puts "#{err_msg}\nretrying"
sleep 2
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
license 'Apache 2.0'
description 'Installs/Configures machine_tag'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.0.8'
version '1.0.9'

recipe 'machine_tag::default', "Installs the 'machine_tag' gem used by the helpers."

0 comments on commit a17610d

Please sign in to comment.