diff options
author | James Shubin <james@shubin.ca> | 2014-03-12 09:44:52 -0400 |
---|---|---|
committer | James Shubin <james@shubin.ca> | 2014-03-16 22:39:08 -0400 |
commit | e69ea498ff43b4a3b185f8746ef2d5a2094a0b69 (patch) | |
tree | 6fd5090b51ca30480f37d1aacfc56fc3e6619d84 | |
parent | ea15eda068fa213b1b2c946e213109cbb7c250b3 (diff) | |
download | puppet-gluster-e69ea498ff43b4a3b185f8746ef2d5a2094a0b69.tar.gz puppet-gluster-e69ea498ff43b4a3b185f8746ef2d5a2094a0b69.tar.xz puppet-gluster-e69ea498ff43b4a3b185f8746ef2d5a2094a0b69.zip |
Fix small chaining bugs.
-rw-r--r-- | lib/puppet/parser/functions/brick_layout_chained.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/parser/functions/brick_layout_chained.rb b/lib/puppet/parser/functions/brick_layout_chained.rb index 472e167..0dff9aa 100644 --- a/lib/puppet/parser/functions/brick_layout_chained.rb +++ b/lib/puppet/parser/functions/brick_layout_chained.rb @@ -102,8 +102,8 @@ module Puppet::Parser::Functions parsed = brick_str_to_hash(bricks) # TODO: there should probably be a proper 'sorted' function for # hostnames, in case they aren't numbered sanely _WITH_ padding. - hosts = get_hostlist(bricks).sort - brickstack = get_brickstacks(bricks, sort=true) + hosts = get_hostlist(parsed).sort + brickstack = get_brickstacks(parsed, sort=true) if bricks.length == 0; return []; end @@ -123,7 +123,7 @@ module Puppet::Parser::Functions function_warning(["brick_layout_chained(): brick list is not valid"]) next end - final.append({'host' => host, 'path' => path}) # save + final.push({'host' => host, 'path' => path}) # save end pointer+=1 end |