summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-10-21 14:07:32 -0400
committerJames Shubin <james@shubin.ca>2014-10-21 14:07:32 -0400
commite99afc506680bdb9225fe0473cbf366aad451d23 (patch)
tree648d2051d8090b89cdc8fae7b6dc241311464737
parenta4bf5cad81ca66212f4c8e52edb2e816b8895690 (diff)
downloadpuppet-gluster-e99afc506680bdb9225fe0473cbf366aad451d23.zip
puppet-gluster-e99afc506680bdb9225fe0473cbf366aad451d23.tar.gz
puppet-gluster-e99afc506680bdb9225fe0473cbf366aad451d23.tar.xz
Fix typo.
-rw-r--r--lib/puppet/parser/functions/brick_layout_chained.rb2
-rw-r--r--lib/puppet/parser/functions/brick_layout_simple.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions/brick_layout_chained.rb b/lib/puppet/parser/functions/brick_layout_chained.rb
index 0dff9aa..18d5ef3 100644
--- a/lib/puppet/parser/functions/brick_layout_chained.rb
+++ b/lib/puppet/parser/functions/brick_layout_chained.rb
@@ -38,7 +38,7 @@ module Puppet::Parser::Functions
raise Puppet::ParseError, "brick_layout_chained(): expects the first argument to be an integer, got #{args[0].inspect} which is of type #{args[0].class}"
end
unless args[1].is_a?(Array)
- raise Puppet::ParseError, "brick_layout_chained(): expects the first argument to be an array, got #{args[1].inspect} which is of type #{args[1].class}"
+ raise Puppet::ParseError, "brick_layout_chained(): expects the second argument to be an array, got #{args[1].inspect} which is of type #{args[1].class}"
end
replica = args[0].to_i # convert from string if needed
diff --git a/lib/puppet/parser/functions/brick_layout_simple.rb b/lib/puppet/parser/functions/brick_layout_simple.rb
index aefc1e2..d91a472 100644
--- a/lib/puppet/parser/functions/brick_layout_simple.rb
+++ b/lib/puppet/parser/functions/brick_layout_simple.rb
@@ -43,7 +43,7 @@ module Puppet::Parser::Functions
raise Puppet::ParseError, "brick_layout_simple(): expects the first argument to be an integer, got #{args[0].inspect} which is of type #{args[0].class}"
end
unless args[1].is_a?(Array)
- raise Puppet::ParseError, "brick_layout_simple(): expects the first argument to be an array, got #{args[1].inspect} which is of type #{args[1].class}"
+ raise Puppet::ParseError, "brick_layout_simple(): expects the second argument to be an array, got #{args[1].inspect} which is of type #{args[1].class}"
end
replica = args[0].to_i # convert from string if needed