From c2f7d63d3dcad9037dbfbee5c96129fd7e698297 Mon Sep 17 00:00:00 2001 From: Cao Xuan Hoang Date: Mon, 26 Sep 2016 11:39:20 +0700 Subject: [PATCH] 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: I8a96c2b8c95076b465d1cd9fc068c46e3fadfb8c --- fuel_health/nmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuel_health/nmanager.py b/fuel_health/nmanager.py index 6086f824..aea77459 100644 --- a/fuel_health/nmanager.py +++ b/fuel_health/nmanager.py @@ -1180,7 +1180,7 @@ class PlatformServicesBaseClass(NovaNetworkScenarioTest): try: delete_method() except Exception as exc: - LOG.warn(exc.message) + LOG.warning(exc.message) return if get_method: self._wait_for_deletion(get_method, timeout, sleep)