Fix LOG.warn to LOG.warning
logging.warn is deprecated in Python 3. https://docs.python.org/3/library/logging.html#logging.warning Change-Id: I78774cd75ff78acd6a572e3e9f52ce52e2497594
This commit is contained in:
parent
1da4d4f45c
commit
47c2bc0ee3
@ -359,8 +359,8 @@ class BootstrapImage(urwid.WidgetWrap):
|
|||||||
# repository since it is not created at that moment. Although we
|
# repository since it is not created at that moment. Although we
|
||||||
# still should provide an ability to use it, because in fact
|
# still should provide an ability to use it, because in fact
|
||||||
# it will be created at the end of deployment.
|
# it will be created at the end of deployment.
|
||||||
log.warn('Accessibility check is skipped for local repository: %s',
|
log.warning('Accessibility check is skipped for local '
|
||||||
release_url)
|
'repository: {}'.format(release_url))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return self.check_url(release_url, proxies)
|
return self.check_url(release_url, proxies)
|
||||||
|
@ -336,7 +336,7 @@ is accessible"}
|
|||||||
if line.startswith("nameserver "):
|
if line.startswith("nameserver "):
|
||||||
nameservers.append(line.split(' ')[1])
|
nameservers.append(line.split(' ')[1])
|
||||||
except EnvironmentError:
|
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
|
# Always remove local IPs from nameserver list
|
||||||
host_ips = network.list_host_ip_addresses()
|
host_ips = network.list_host_ip_addresses()
|
||||||
|
Loading…
Reference in New Issue
Block a user