Skip to content

Commit

Permalink
Gracefully handle a missing IP address
Browse files Browse the repository at this point in the history
Not all machines have an IPv4 address. The datatype is
`Optional[String]` so this is valid.
  • Loading branch information
ekohl committed Sep 20, 2019
1 parent 2bc6a5a commit f0c7110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
$dhcp_key_secret = undef
$dhcp_omapi_port = 7911
$dhcp_node_type = 'standalone'
$dhcp_failover_address = $::ipaddress
$dhcp_failover_address = fact('ipaddress')
$dhcp_peer_address = undef
$dhcp_failover_port = 519
$dhcp_max_response_delay = 30
Expand Down

0 comments on commit f0c7110

Please sign in to comment.