deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core] RHEV-M: Added more meaningful error message when RHEV-M is not properly configured for user-data
Date Mon, 12 Dec 2011 10:53:37 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 .../lib/deltacloud/drivers/rhevm/rhevm_driver.rb   |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
index fa876de..854962a 100644
--- a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
+++ b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
@@ -319,6 +319,11 @@ class RHEVMDriver < Deltacloud::BaseDriver
 
   exceptions do
 
+    on /custom properties are not configured/ do
+      status 501
+      message "User-data injection is not configured properly"
+    end
+
     on /Bad Request/ do
       status 400
     end
-- 
1.7.4.4


Mime
View raw message