Sha256: 5e1296369f03dc8bd29896334cb33448bb0a364f595a0468e92dbf69355fda56
Contents?: true
Size: 1.02 KB
Versions: 25
Compression:
Stored size: 1.02 KB
Contents
module Fog module Network class AzureRM # This class provides the actual implementation for service calls. class Real def check_express_route_circuit_exists(resource_group_name, circuit_name) msg = "Checking Express Route Circuit #{circuit_name}" Fog::Logger.debug msg begin @network_client.express_route_circuits.get(resource_group_name, circuit_name) Fog::Logger.debug "Express Route Circuit #{circuit_name} exists." true rescue MsRestAzure::AzureOperationError => e if e.body['error']['code'] == 'ResourceNotFound' Fog::Logger.debug "Express Route Circuit #{circuit_name} doesn't exist." false else raise_azure_exception(e, msg) end end end end # This class provides the mock implementation for unit tests. class Mock def check_express_route_circuit_exists(*) true end end end end end
Version data entries
25 entries across 25 versions & 3 rubygems