Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Snapshot save for deployment on windows
Browse files Browse the repository at this point in the history
The Windows part of snapshot save was always calling "snapshot" in the
node, not taking into account if the user had asked --deployment.

Bug 1170105 - rhc snapshot save --deployment does not work on windows
  • Loading branch information
codificat committed Dec 3, 2014
1 parent 3af453d commit c53cd8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rhc/ssh_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def save_snapshot(app, filename, for_deployment=false, ssh_executable=nil)
else
Net::SSH.start(ssh_uri.host, ssh_uri.user) do |ssh|
File.open(filename, 'wb') do |file|
ssh.exec! "snapshot" do |channel, stream, data|
ssh.exec! snapshot_cmd do |channel, stream, data|
if stream == :stdout
file.write(data)
else
Expand Down

0 comments on commit c53cd8e

Please sign in to comment.