masters = []
scope.lookupvar('site::localinfo').keys.sort.each do |node|
if scope.lookupvar('site::localinfo')[node]['static_master']
masters = []
scope.lookupvar('site::localinfo').keys.sort.each do |node|
if scope.lookupvar('site::localinfo')[node]['static_master']