summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r--lib/puppet/parser/functions/brick_layout_chained.rb6
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