lib/fog/azurerm/models/network/public_ips.rb in fog-azure-rm-0.1.2 vs lib/fog/azurerm/models/network/public_ips.rb in fog-azure-rm-0.2.0

- old
+ new

@@ -19,18 +19,11 @@ public_ip = service.get_public_ip(resource_group_name, public_ip_name) public_ip_fog = Fog::Network::AzureRM::PublicIp.new(service: service) public_ip_fog.merge_attributes(Fog::Network::AzureRM::PublicIp.parse(public_ip)) end - def check_if_exists(resource_group, name) - Fog::Logger.debug "Checkng if PublicIP #{name} exists." - if service.check_for_public_ip(resource_group, name) - Fog::Logger.debug "PublicIP #{name} exists." - true - else - Fog::Logger.debug "PublicIP #{name} doesn't exists." - false - end + def check_public_ip_exists(resource_group, name) + service.check_public_ip_exists(resource_group, name) end end end end end