Browse Source

Replace LOG.warn with LOG.warning

logging.warn is deprecated in Python 3 [1].

[1] https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: I61218125ebf85b7951163360279645d7ad4d176c
changes/04/558804/3
Sergii Golovatiuk 4 years ago
parent
commit
bf99d30f56
  1. 4
      docker/docker-puppet.py

4
docker/docker-puppet.py

@ -196,8 +196,8 @@ for service in (json_data or []):
configs[config_volume][2] = '%s\n%s' % (configs[config_volume][2],
manifest)
if configs[config_volume][3] != config_image:
log.warn("Config containers do not match even though"
" shared volumes are the same!")
log.warning("Config containers do not match even though"
" shared volumes are the same!")
else:
if not config_volume_only or (config_volume_only == config_volume):
log.debug("Adding new service")

Loading…
Cancel
Save