Skip to content

Commit

Permalink
Use the correct variables when checking
Browse files Browse the repository at this point in the history
f291aa3 refactored this to use Puppet 4
types but a copy-paste error means we no longer check the correct
values.
  • Loading branch information
ekohl authored and mmoll committed Oct 16, 2017
1 parent 5ddea98 commit 43cbbe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/proxydhcp.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
}

$net = fact("network_${interface_fact_name}")
unless ($ip =~ Stdlib::Compat::Ipv4) {
unless ($net =~ Stdlib::Compat::Ipv4) {
fail("Could not get the network address from fact network_${interface_fact_name}")
}

$mask = fact("netmask_${interface_fact_name}")
unless ($ip =~ Stdlib::Compat::Ipv4) {
unless ($mask =~ Stdlib::Compat::Ipv4) {
fail("Could not get the network mask from fact netmask_${interface_fact_name}")
}

Expand Down

0 comments on commit 43cbbe1

Please sign in to comment.