Fix some typos in swift_storage_policy.rb

TrivialFix

Change-Id: Idf396283dc0d1c0c9dfd28c702bba826cffc2414
This commit is contained in:
zhangyanxian 2017-03-17 02:53:59 +00:00
parent 2efc06140f
commit 2628d0fae8
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ Puppet::Type.newtype(:swift_storage_policy) do
validate do |value|
value_match = /\d+/.match(value)
next unless value_match.nil? || !value_match[0].eql?(value)
fail('swift_storage_policy name must be a postive integer')
fail('swift_storage_policy name must be a positive integer')
end
newvalues(/\d+/)
end

View File

@ -10,7 +10,7 @@ describe Puppet::Type.type(:swift_storage_policy) do
it 'should fail if swift_storage_policy name is not an integer' do
expect {
Puppet::Type.type(:swift_storage_policy).new(:name => 'a')
}.to raise_error(Puppet::ResourceError, /swift_storage_policy name must be a postive integer/)
}.to raise_error(Puppet::ResourceError, /swift_storage_policy name must be a positive integer/)
end
it 'should pass if policy_name is valid' do