This commit is contained in:
bee0005
2016-09-01 10:10:57 +00:00
parent ac25be1dc8
commit 8cca9682c0
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ class VolumeController < ApplicationController
volume_name = params[:volume_name]
volume_name = volume_name.delete(' ')
puts "gluster volume start " + volume_name
#output = `sshpass -p#{@config["host_password"]} ssh #{@config["host_port"]} #{@config["host_user"]}@#{@config["host_ip"]} gluster volume start #{volume_name}`
output = `sshpass -p#{@config["host_password"]} ssh #{@config["host_port"]} #{@config["host_user"]}@#{@config["host_ip"]} gluster volume start #{volume_name}`
redirect_to '/volume/index'
end