lib/gogetit/maas.rb in gogetit-0.13.3 vs lib/gogetit/maas.rb in gogetit-0.13.4

- old
+ new

@@ -19,11 +19,11 @@ logger.info("Calling <#{__method__.to_s}>") @domain = conn.request(:get, ['domains'])[0]['name'] end def machine_exists?(name) - logger.info("Calling <#{__method__.to_s}>") + logger.info("Calling <#{__method__.to_s}> for #{name}") conn.request(:get, ['machines']).each do |m| return true if m['hostname'] == name end false end @@ -35,18 +35,18 @@ end false end def dnsresource_exists?(name) - logger.info("Calling <#{__method__.to_s}>") + logger.info("Calling <#{__method__.to_s}> for #{name}") conn.request(:get, ['dnsresources']).each do |item| return true if item['fqdn'] == name + '.' + get_domain end false end def domain_name_exists?(name) - logger.info("Calling <#{__method__.to_s}>") + logger.info("Calling <#{__method__.to_s}> for #{name}") return true if dnsresource_exists?(name) or machine_exists?(name) end def get_subnets logger.info("Calling <#{__method__.to_s}>")