deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Vollero <razor...@gmail.com>
Subject Re: [PATCH core] RHEV-M: Added more meaningful error message when RHEV-M is not properly configured for user-data
Date Mon, 12 Dec 2011 12:19:31 GMT
Ack'd.

On Mon, Dec 12, 2011 at 11:53 AM,  <mfojtik@redhat.com> wrote:
> 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