diff --git a/fuelmenu/modules/bootstrapimg.py b/fuelmenu/modules/bootstrapimg.py index 9f09917..6694970 100644 --- a/fuelmenu/modules/bootstrapimg.py +++ b/fuelmenu/modules/bootstrapimg.py @@ -360,8 +360,8 @@ class BootstrapImage(urwid.WidgetWrap): # repository since it is not created at that moment. Although we # still should provide an ability to use it, because in fact # it will be created at the end of deployment. - log.warn('Accessibility check is skipped for local repository: %s', - release_url) + log.warning('Accessibility check is skipped for local ' + 'repository: {}'.format(release_url)) return True return self.check_url(release_url, proxies) diff --git a/fuelmenu/modules/dnsandhostname.py b/fuelmenu/modules/dnsandhostname.py index 349aa2c..de3cf11 100644 --- a/fuelmenu/modules/dnsandhostname.py +++ b/fuelmenu/modules/dnsandhostname.py @@ -336,7 +336,7 @@ is accessible"} if line.startswith("nameserver "): nameservers.append(line.split(' ')[1]) except EnvironmentError: - log.warn("Unable to open /etc/resolv.conf") + log.warning("Unable to open /etc/resolv.conf") # Always remove local IPs from nameserver list host_ips = network.list_host_ip_addresses()