deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: Core: Report unknown frontend properly (DTACLOUD-331)
Date Mon, 01 Oct 2012 12:27:54 GMT
Updated Branches:
  refs/heads/master caf973290 -> 761904939


Core: Report unknown frontend properly (DTACLOUD-331)


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/76190493
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/76190493
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/76190493

Branch: refs/heads/master
Commit: 761904939b7b8e7ded58a81612b2f9e39a2a6d8c
Parents: caf9732
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Mon Oct 1 10:44:02 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Oct 1 14:28:02 2012 +0200

----------------------------------------------------------------------
 server/config.ru |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/76190493/server/config.ru
----------------------------------------------------------------------
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


Mime
View raw message