Fix log reporting for DNS creation process

Reasons:
 - Taskmanager reporting about creation of
   DNS record even if DNS is disabled.

Changes:
 - Moving log report call bellow DNS creation
   capabilities check.

Change-Id: I2245a52c8f30ae75f93b720c3ba71db04e04c547
Closes-Bug: #1325517
This commit is contained in:
Denis Makogon 2014-06-02 13:22:54 +03:00
parent d4ba64dfe2
commit 2b95362ac9

View File

@ -590,12 +590,12 @@ class FreshInstanceTasks(FreshInstance, NotifyMixin, ConfigurationMixin):
overrides=overrides)
def _create_dns_entry(self):
LOG.debug("%(gt)s: Creating dns entry for instance: %(id)s" %
{'gt': greenthread.getcurrent(), 'id': self.id})
dns_support = CONF.trove_dns_support
LOG.debug("trove dns support = %s" % dns_support)
if dns_support:
LOG.debug("%(gt)s: Creating dns entry for instance: %(id)s" %
{'gt': greenthread.getcurrent(), 'id': self.id})
dns_client = create_dns_client(self.context)
def get_server():