You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Francesco Vollero <ra...@gmail.com> on 2010/12/10 14:23:54 UTC
[PATCH core] Modified Initalization of HOSTNAME constant into a more ruby style
Minor patch to keep the code ruby-ish
---
server/server.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/server.rb b/server/server.rb
index 9585f9b..f092933 100644
--- a/server/server.rb
+++ b/server/server.rb
@@ -49,7 +49,7 @@ end
# You could use $API_HOST environment variable to change your hostname to
# whatever you want (eg. if you running API behind NAT)
-HOSTNAME=ENV['API_HOST'] ? ENV['API_HOST'] : nil
+HOSTNAME=ENV['API_HOST'] || nil
error Deltacloud::Validation::Failure do
report_error(400, "validation_failure")
--
1.7.3.3