MT#8419 get_nodename: return 'self' if not found

Fix for CE. But we should use the proper nodename at network.yml insead
of using 'self' and having expections for that.
vseva/db_defaults
Victor Seva 12 years ago
parent 9adfa4570d
commit 401019fe2b

@ -11,5 +11,7 @@ my $nodename = <$hh>;
close $hh;
chomp $nodename;
die "Fatal error retrieving nodename [$nodename]" unless length $nodename;
nodename = 'self' unless !hosts.${nodename}.defined;
$stash->set(out => $nodename);
[% END -%]
[% IF !hosts.${nodename}.defined -%][% out = 'self' -%][% END -%]

Loading…
Cancel
Save