deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject [PATCH 4/5] * lib/deltacloud/hardware_profile.rb (param): return a symbol
Date Sat, 22 Jan 2011 00:02:55 GMT
From: David Lutterkort <lutter@redhat.com>

All other parameter names internally are symbols; make sure HWP's obey this
convention.
---
 server/lib/deltacloud/hardware_profile.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/lib/deltacloud/hardware_profile.rb b/server/lib/deltacloud/hardware_profile.rb
index 9ba235a..2dc1779 100644
--- a/server/lib/deltacloud/hardware_profile.rb
+++ b/server/lib/deltacloud/hardware_profile.rb
@@ -63,7 +63,7 @@ module Deltacloud
       end
 
       def param
-        "hwp_#{name}"
+        :"hwp_#{name}"
       end
 
       def fixed?
-- 
1.7.3.4


Mime
View raw message