Skip to content

Commit

Permalink
check for string 'undef'
Browse files Browse the repository at this point in the history
workaround bug where hiera does not properly return undef
  • Loading branch information
John Noss authored and Felix Gilcher committed Oct 11, 2016
1 parent 5c8ccdc commit a3bef23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
# Todo: Use Serviceip from HA-Setup if ha enabled.
$oned_onegate_ip = hiera('one::oned::onegate::ip', $::ipaddress)
# Specify full endpoint if needed (such as if using https proxy)
$oned_onegate_endpoint = hiera('one::oned::onegate::endpoint', undef)
$oned_onegate_endpoint = hiera('one::oned::onegate::endpoint', 'undef')

# E-POST imaginator parameters
$kickstart_network = hiera ('one::node::kickstart::network', undef)
Expand Down
2 changes: 1 addition & 1 deletion templates/oned.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ DEFAULT_UMASK = 177
# MUST be consistent with the values in onegate-server.conf
#*******************************************************************************

<% if scope.lookupvar('one::oned_onegate_endpoint') -%>
<% if scope.lookupvar('one::oned_onegate_endpoint') != 'undef' -%>
ONEGATE_ENDPOINT = "<%= scope.lookupvar('one::oned_onegate_endpoint') %>"
<% elsif scope.lookupvar('one::oned_onegate_ip') -%>
ONEGATE_ENDPOINT = "http://<%= scope.lookupvar('one::oned_onegate_ip') %>:5030"
Expand Down

0 comments on commit a3bef23

Please # to comment.