mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
drop method names from exceptions
This commit is contained in:
@@ -644,8 +644,8 @@ class AzureProvider(BaseProvider):
|
|||||||
# Throw exception otherwise, it should not happen if the
|
# Throw exception otherwise, it should not happen if the
|
||||||
# profile was generated by octoDNS
|
# profile was generated by octoDNS
|
||||||
if 'GEO-AS' not in geo_map:
|
if 'GEO-AS' not in geo_map:
|
||||||
msg = '_data_for_dynamic: Profile={}: '.format(
|
msg = 'Profile={} for record {}: '.format(
|
||||||
geo_profile.name)
|
geo_profile.name, azrecord.fqdn)
|
||||||
msg += 'Middle East (GEO-ME) is not supported by ' + \
|
msg += 'Middle East (GEO-ME) is not supported by ' + \
|
||||||
'octoDNS. It needs to be either paired ' + \
|
'octoDNS. It needs to be either paired ' + \
|
||||||
'with Asia (GEO-AS) or expanded into ' + \
|
'with Asia (GEO-AS) or expanded into ' + \
|
||||||
@@ -782,9 +782,9 @@ class AzureProvider(BaseProvider):
|
|||||||
elif ep.target:
|
elif ep.target:
|
||||||
ep.type = endpoint_type_prefix + 'externalEndpoints'
|
ep.type = endpoint_type_prefix + 'externalEndpoints'
|
||||||
else:
|
else:
|
||||||
msg = ('_generate_tm_profile: Invalid endpoint {} ' +
|
msg = ('Invalid endpoint {} in profile {}, needs to have' +
|
||||||
'in profile {}, needs to have either target or ' +
|
'either target or target_resource_id').format(
|
||||||
'target_resource_id').format(ep.name, name)
|
ep.name, name)
|
||||||
raise AzureException(msg)
|
raise AzureException(msg)
|
||||||
|
|
||||||
# build and return
|
# build and return
|
||||||
@@ -1032,7 +1032,7 @@ class AzureProvider(BaseProvider):
|
|||||||
if getattr(record, 'dynamic', False):
|
if getattr(record, 'dynamic', False):
|
||||||
self._traffic_managers_gc(record, set())
|
self._traffic_managers_gc(record, set())
|
||||||
|
|
||||||
self.log.debug('* Success Delete: {}'.format(ar))
|
self.log.debug('* Success Delete: {}'.format(record))
|
||||||
|
|
||||||
def _apply(self, plan):
|
def _apply(self, plan):
|
||||||
'''Required function of manager.py to actually apply a record change.
|
'''Required function of manager.py to actually apply a record change.
|
||||||
|
|||||||
Reference in New Issue
Block a user