Browse Source

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
Cao Xuan Hoang 2 years ago
parent
commit
c2f7d63d3d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      fuel_health/nmanager.py

+ 1
- 1
fuel_health/nmanager.py View File

@@ -1180,7 +1180,7 @@ class PlatformServicesBaseClass(NovaNetworkScenarioTest):
1180 1180
         try:
1181 1181
             delete_method()
1182 1182
         except Exception as exc:
1183
-            LOG.warn(exc.message)
1183
+            LOG.warning(exc.message)
1184 1184
             return
1185 1185
         if get_method:
1186 1186
             self._wait_for_deletion(get_method, timeout, sleep)

Loading…
Cancel
Save