deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koper, Dies" <di...@fast.au.fujitsu.com>
Subject RE: [PATCH core] Core: Report unknown frontend properly (DTACLOUD-331)
Date Mon, 01 Oct 2012 11:08:21 GMT
ACK

d:\sources\OSS\cloud\deltacloud\server>ruby bin\deltacloudd -i fgcp -f
mock
Starting Deltacloud API :: fgcp :: http://localhost:3001/api

ERROR: Unknown frontend (mock). Valid values are 'deltacloud,cimi,ec2'

Cheers,
Dies Koper


> -----Original Message-----
> From: mfojtik@redhat.com [mailto:mfojtik@redhat.com]
> Sent: Monday, 1 October 2012 6:45 PM
> To: dev@deltacloud.apache.org
> Subject: [PATCH core] Core: Report unknown frontend properly
(DTACLOUD-
> 331)
> 
> From: Michal Fojtik <mfojtik@redhat.com>
> 
> 
> Signed-off-by: Michal fojtik <mfojtik@redhat.com>
> ---
>  server/config.ru |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/server/config.ru b/server/config.ru
> index 6a28352..8ef20e5 100644
> --- a/server/config.ru
> +++ b/server/config.ru
> @@ -54,6 +54,10 @@ end
>  #       different root_url's
>  #
>  frontends.each do |frontend|
> +  if Deltacloud[frontend.to_sym].nil?
> +    puts "ERROR: Unknown frontend (#{frontend}). Valid values are
> 'deltacloud,cimi,ec2'"
> +    exit(1)
> +  end
>    Deltacloud[frontend.to_sym].require!
>    routes.merge!({
>      Deltacloud[frontend].root_url => Deltacloud[frontend].klass
> --
> 1.7.10.2
> 



Mime
View raw message