You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/05/24 16:08:15 UTC

git commit: Core: Fixed :run action URI in instance show action

Updated Branches:
  refs/heads/master 4954fb82b -> e8c5efe1a


Core: Fixed :run action URI in instance show action


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/e8c5efe1
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/e8c5efe1
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/e8c5efe1

Branch: refs/heads/master
Commit: e8c5efe1ad46dc63851c29dba9f26fcb79959c0e
Parents: 4954fb8
Author: Michal Fojtik <mf...@redhat.com>
Authored: Thu May 24 16:08:38 2012 +0200
Committer: Michal fojtik <mf...@redhat.com>
Committed: Thu May 24 16:08:38 2012 +0200

----------------------------------------------------------------------
 server/views/instances/show.html.haml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/e8c5efe1/server/views/instances/show.html.haml
----------------------------------------------------------------------
diff --git a/server/views/instances/show.html.haml b/server/views/instances/show.html.haml
index 0f4cc0a..ac0c6ba 100644
--- a/server/views/instances/show.html.haml
+++ b/server/views/instances/show.html.haml
@@ -59,6 +59,6 @@
         - @instance.actions.each do |action|
           =link_to_action action, self.send(:"#{action}_instance_url", @instance.id), instance_action_method(action)
         - if @instance.state=="RUNNING" and driver.respond_to?(:run_on_instance)
-          =link_to_action 'run command', "#{run_instance_url(@instance.id)};id=#{@instance.id}", :get
+          =link_to_action 'run command', api_url('/instances/%s/run', % @instance.id), :get
         - if @instance.can_create_image?
           =link_to_action 'Create Image', api_url_for("images/new?instance_id=#{@instance.id}"), :get