You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2011/12/12 11:53:37 UTC

[PATCH core] RHEV-M: Added more meaningful error message when RHEV-M is not properly configured for user-data

From: Michal Fojtik <mf...@redhat.com>


Signed-off-by: Michal fojtik <mf...@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


Re: [PATCH core] RHEV-M: Added more meaningful error message when RHEV-M is not properly configured for user-data

Posted by Francesco Vollero <ra...@gmail.com>.
Ack'd.

On Mon, Dec 12, 2011 at 11:53 AM,  <mf...@redhat.com> wrote:
> From: Michal Fojtik <mf...@redhat.com>
>
>
> Signed-off-by: Michal fojtik <mf...@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
>