From ac3ab4c48bdfcffdc95d8b807ae94cfa5d4bc080 Mon Sep 17 00:00:00 2001 From: kyg516 Date: Mon, 3 Oct 2016 20:34:41 +0900 Subject: [PATCH] Fix volume mount tag --- app/controllers/volume_controller.rb | 6 ++++-- app/views/volume/index.html.erb | 8 +++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/controllers/volume_controller.rb b/app/controllers/volume_controller.rb index 703d497..b52e56a 100644 --- a/app/controllers/volume_controller.rb +++ b/app/controllers/volume_controller.rb @@ -79,7 +79,7 @@ class VolumeController < ApplicationController command << "ssh #{node.user_name}@#{node.host_ip} " command << "gluster volume create #{volume_name} " if !volume_type.include? "Distribute" - command << "#{volume_type.downcase} #{num_of_brick}" + command << "#{volume_type.downcase} #{num_of_brick} " end nodes = Node.all bricks.each do |t| @@ -96,7 +96,9 @@ class VolumeController < ApplicationController command << "force" puts command `#{command}` - redirect_to '/volume/index' + render :json => { + :test => 0, + } end def volume_stop diff --git a/app/views/volume/index.html.erb b/app/views/volume/index.html.erb index 32c2d16..316acc8 100644 --- a/app/views/volume/index.html.erb +++ b/app/views/volume/index.html.erb @@ -108,6 +108,7 @@