Also fix the form from instance list so you actually
get the detail of the instance you selected.  Arch seems
wrong, but will have to fix that separately.
---
 src/app/views/instance/index.haml |    2 +-
 src/app/views/instance/show.haml  |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/app/views/instance/index.haml 
b/src/app/views/instance/index.haml
index 9031937..7b4322f 100644
--- a/src/app/views/instance/index.haml
+++ b/src/app/views/instance/index.haml
@@ -53,7 +53,7 @@
           - else
             - instances.each do |inst|
               %tr
-                %td= check_box_tag 'id[]'
+                %td= check_box_tag 'id[]', inst.id
                 %td=inst.state
                 %td= inst.name
                 %td= inst.hardware_profile.name
diff --git a/src/app/views/instance/show.haml b/src/app/views/instance/show.haml
index d90d63e..6e05d87 100644
--- a/src/app/views/instance/show.haml
+++ b/src/app/views/instance/show.haml
@@ -40,5 +40,9 @@
     %li
       = label_tag :shared_to, 'Shared to'
       %span= "N/A"
+    - if @instance.state == Instance::STATE_ERROR
+      %li
+        = label_tag :error, 'Error'
+        %span= @instance.last_error
 
   = submit_tag 'Back', :name => 'back'
-- 
1.7.2.3

_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to