-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> Thanks, that worked perfectly! I had no idea key and value were reserved
> words.
they aren't and imho your example looks quite fine. But as you didn't
post the erb error in the first place, it's hard to tell what is
actually really wrong.
~pete
-
Thanks, that worked perfectly! I had no idea key and value were reserved
words.
On Mon, May 16, 2011 at 6:16 PM, yzhk...@gmail.com wrote:
> multipaths {
> <% devices.each do |key,value| -%>
> multipath {
> wwid<%= value %>
> alias <%= key %>
> }
> <% end -%
multipaths {
<% devices.each do |key,value| -%>
multipath {
wwid<%= value %>
alias <%= key %>
}
<% end -%>
}
On Tue, May 17, 2011 at 2:29 AM, Aaron Grewell wrote:
> Hi all,
> I'm trying to figure out the intersection of hashes and ERB. I don't know
> Ruby,
Hi all,
I'm trying to figure out the intersection of hashes and ERB. I don't know
Ruby, so I put this together from examples available online and predictably
it generates an ERB syntax error. Can you point me in the right direction?
### Call:
class {'multipath':
devices => {
oradata0