From 075fc9e2572330416ec0aad45bce969baa43b4f3 Mon Sep 17 00:00:00 2001 From: Cao Xuan Hoang Date: Mon, 26 Sep 2016 17:49:07 +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: I5cef5a11e4802d9244295e2c871a848d14ab7454 --- fuel_agent/drivers/nailgun.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fuel_agent/drivers/nailgun.py b/fuel_agent/drivers/nailgun.py index 27befa73..a7173d7b 100644 --- a/fuel_agent/drivers/nailgun.py +++ b/fuel_agent/drivers/nailgun.py @@ -306,9 +306,9 @@ class Nailgun(base.BaseDataDriver): try: user_accounts = self.data['ks_meta']['user_accounts'] except KeyError: - LOG.warn(('This environment does not support non-root accounts ' - 'on the target nodes. Non-root user accounts will not ' - 'be created')) + LOG.warning(('This environment does not support non-root accounts ' + 'on the target nodes. Non-root user accounts will ' + 'not be created')) user_accounts = [] for account in user_accounts: