deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: Core: Fixed :run action URI in instance show action
Date Thu, 24 May 2012 14:08:15 GMT
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 <mfojtik@redhat.com>
Authored: Thu May 24 16:08:38 2012 +0200
Committer: Michal fojtik <mfojtik@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


Mime
View raw message