From 95df1344e7a0c4090abb1bd0ab8762d63fe6322b Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 28 Jan 2022 01:28:11 +0900 Subject: [PATCH] Use LOG.warning instead of deprecated LOG.warn The LOG.warn method is deprecated[1] and the LOG.warning method should be used instead. [1] https://docs.python.org/3/library/logging.html#logging.warning Change-Id: I455bb6662b3ccc36b856e923e7220e357e8ef48f --- keystone/Chart.yaml | 2 +- keystone/templates/bin/_fernet-manage.py.tpl | 2 +- releasenotes/notes/keystone.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/keystone/Chart.yaml b/keystone/Chart.yaml index 3c0acc6b11..dec751374a 100644 --- a/keystone/Chart.yaml +++ b/keystone/Chart.yaml @@ -14,7 +14,7 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm Keystone name: keystone -version: 0.2.26 +version: 0.2.27 home: https://docs.openstack.org/keystone/latest/ icon: https://www.openstack.org/themes/openstack/images/project-mascots/Keystone/OpenStack_Project_Keystone_vertical.png sources: diff --git a/keystone/templates/bin/_fernet-manage.py.tpl b/keystone/templates/bin/_fernet-manage.py.tpl index b796796541..a93cab8767 100644 --- a/keystone/templates/bin/_fernet-manage.py.tpl +++ b/keystone/templates/bin/_fernet-manage.py.tpl @@ -88,7 +88,7 @@ def read_from_files(): if len(list(keys)): LOG.debug("Keys read from files: %s", keys) else: - LOG.warn("No keys were read from files.") + LOG.warning("No keys were read from files.") return data diff --git a/releasenotes/notes/keystone.yaml b/releasenotes/notes/keystone.yaml index 81456c2ae7..ea79493118 100644 --- a/releasenotes/notes/keystone.yaml +++ b/releasenotes/notes/keystone.yaml @@ -42,4 +42,5 @@ keystone: - 0.2.24 Remove unused admin port in keystone - 0.2.25 Migrated CronJob resource to batch/v1 API version & PodDisruptionBudget to policy/v1 - 0.2.26 Add Xena and Yoga values overrides + - 0.2.27 Use LOG.warning instead of deprecated LOG.warn ...