MT#9385 add get_dbnode helper

Change-Id: I00f656bc74f9b872f9b5f159ff6f06ec900bba60
changes/67/267/1
Victor Seva 11 years ago
parent 7065656450
commit bf6eae2680

@ -0,0 +1,10 @@
[%
# Returns the dbnode of a given host
#
# @param argv.host The hostname to get the dbnode for.
# @return out The dbnode.
-%]
[% IF !hosts.${argv.host}.defined -%]
[% argv.host = 'self' -%]
[% END -%]
[% out = hosts.${argv.host}.dbnode -%]
Loading…
Cancel
Save