Skip to content

Commit

Permalink
Merge branch 'cyberious-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 committed Aug 8, 2014
2 parents 1404b80 + 9467612 commit 70f5b28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/manage_binding.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

if ($protocol == 'https') {
validate_re($certificate_thumbprint, ['^(.)+$'], 'certificate_thumbprint required for https bindings')
if ($ip_address == '*' or $ip_address == '0.0.0.0') {
if ($ip_address == '0.0.0.0') {
fail('https bindings require a valid ip_address')
}

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/manage_binding_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
:ip_address => '*',
} }

it { expect { should contain_exec('Attach-Certificate-myWebSite-port-443')}.to raise_error(Puppet::Error, /https bindings require a valid ip_address/) }
it { should contain_exec('Attach-Certificate-myWebSite-port-443')}
end

describe 'when protocol is https and ip address 0.0.0.0' do
Expand Down

0 comments on commit 70f5b28

Please sign in to comment.