diff options
author | LiuNanke <nanke.liu@easystack.cn> | 2015-12-29 12:54:49 +0800 |
---|---|---|
committer | LiuNanke <nanke.liu@easystack.cn> | 2015-12-29 09:32:42 +0000 |
commit | 208d2debd0459ad5ce27884f8f4bbc3c1979ab18 (patch) | |
tree | d0719d6ee8d22a3c6211ba0b158333cbf3061128 /contrib/rackspace/rackspace/resources/cloud_server.py | |
parent | e7ec1982cc65f3c6e81bd7edfd9063a01ec2572d (diff) | |
download | heat-208d2debd0459ad5ce27884f8f4bbc3c1979ab18.tar.gz |
Using LOG.warning replace LOG.warn
*Python 3 deprecated the logger.warn method, see:
*https://docs.python.org/3/library/logging.html#logging.warning
*so we prefer to use warning to avoid DeprecationWarning.
Change-Id: I07ee9c97c3548c965aaf83d34b37b23e9baba584
Diffstat (limited to 'contrib/rackspace/rackspace/resources/cloud_server.py')
-rw-r--r-- | contrib/rackspace/rackspace/resources/cloud_server.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/rackspace/rackspace/resources/cloud_server.py b/contrib/rackspace/rackspace/resources/cloud_server.py index d6879d6bf..e0bced190 100644 --- a/contrib/rackspace/rackspace/resources/cloud_server.py +++ b/contrib/rackspace/rackspace/resources/cloud_server.py @@ -147,7 +147,8 @@ class CloudServer(server.Server): reason = server.metadata.get('rackconnect_unprocessable_reason', None) if reason is not None: - LOG.warn(_LW("RackConnect unprocessable reason: %s"), reason) + LOG.warning(_LW("RackConnect unprocessable reason: %s"), + reason) msg = _("RackConnect automation has completed") self._add_event(self.action, self.status, msg) |