incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 11/14] Added state to Key (AVAILABLE or DELETED)
Date Mon, 15 Nov 2010 12:46:53 GMT
From: Michal Fojtik <mfojtik@redhat.com>

---
 server/lib/deltacloud/models/key.rb |    1 +
 server/views/keys/show.xml.haml     |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/server/lib/deltacloud/models/key.rb b/server/lib/deltacloud/models/key.rb
index 22a69a6..d1e434e 100644
--- a/server/lib/deltacloud/models/key.rb
+++ b/server/lib/deltacloud/models/key.rb
@@ -23,6 +23,7 @@ class Key < BaseModel
   attr_accessor :username
   attr_accessor :password
   attr_accessor :pem_rsa_key
+  attr_accessor :state
 
   def is_password?
     true if @credential_type.eql?(:password)
diff --git a/server/views/keys/show.xml.haml b/server/views/keys/show.xml.haml
index b3659b0..abb513b 100644
--- a/server/views/keys/show.xml.haml
+++ b/server/views/keys/show.xml.haml
@@ -17,3 +17,5 @@
     %password<
       =cdata do
         =@key.password
+  %state<
+    =@key.state
-- 
1.7.3.2


Mime
View raw message