You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by fa...@apache.org on 2012/04/18 21:03:31 UTC
svn commit: r1327632 - /incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
Author: fapeeler
Date: Wed Apr 18 19:03:31 2012
New Revision: 1327632
URL: http://svn.apache.org/viewvc?rev=1327632&view=rev
Log:
VCL-576
Use FQDN value if it is set when collecting the local management node hostname
Using the hostname first can break when localhost as the FQDN
Modified:
incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
Modified: incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/utils.pm?rev=1327632&r1=1327631&r2=1327632&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/utils.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/utils.pm Wed Apr 18 19:03:31 2012
@@ -5726,7 +5726,12 @@ sub get_management_node_info {
# If a management node identifier argument wasn't specified get the hostname of this management node
if (!$management_node_identifier) {
- $management_node_identifier = (hostname())[0];
+ if ($FQDN) {
+ $management_node_identifier = $FQDN;
+ }
+ else {
+ $management_node_identifier = (hostname())[0];
+ }
}
if (!defined($ENV{management_node_info}) || !ref($ENV{management_node_info}) || ref($ENV{management_node_info}) ne 'HASH') {