libraries/dynadns.rb
def load_zones?
        return false unless node['dhcp']['use_bags']
        has_zones_attr = node['dns'] && node['dns']['zones']
        return true if has_zones_attr && !node['dns']['zones'].empty?
      end
#
# Should we load zones?
#   We only want to load zones if configured to use databags and node attribute node['dns']['zones'] is populated
#
Should we load zones.
We only want to load zones if configured to use databags and node attribute node['dns']['zones'] is populated
Should we load zones . We only want to load zones if configured to use databags and node attribute node [ ' dns ' ] [ ' zones ' ] is populated
def load_zones?
        return false unless node['dhcp']['use_bags']
        has_zones_attr = node['dns'] && node['dns']['zones']
        return true if has_zones_attr && !node['dns']['zones'].empty?
      end
def load_zones? return false unless node [ 'dhcp' ] [ 'use_bags' ] has_zones_attr = node [ 'dns' ] && node [ 'dns' ] [ 'zones' ] return true if has_zones_attr && ! node [ 'dns' ] [ 'zones' ] . empty? end
Should we load zones?
Should we load zones?