You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by lu...@redhat.com on 2011/01/22 01:02:55 UTC

[PATCH 4/5] * lib/deltacloud/hardware_profile.rb (param): return a symbol

From: David Lutterkort <lu...@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