Skip to content

Commit

Permalink
Merge pull request voxpupuli#334 from jk2l/master
Browse files Browse the repository at this point in the history
Test changes for property
  • Loading branch information
solarkennedy authored Jul 25, 2017
2 parents 99ff52a + 794b987 commit a52a577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/type/consul_key_value.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
defaultto 0
end

newparam(:value) do
newproperty(:value) do
desc 'The key value string'
validate do |value|
raise ArgumentError, "The key value must be a string" if not value.is_a?(String)
Expand All @@ -35,7 +35,7 @@
defaultto ''
end

newproperty(:protocol) do
newparam(:protocol) do
desc 'consul protocol'
newvalues(:http, :https)
defaultto :http
Expand Down

0 comments on commit a52a577

Please sign in to comment.