summaryrefslogtreecommitdiff
path: root/ironic
diff options
context:
space:
mode:
authorIury Gregory Melo Ferreira <imelofer@redhat.com>2020-03-13 09:47:04 +0100
committerIury Gregory Melo Ferreira <imelofer@redhat.com>2020-03-13 09:47:04 +0100
commit31439718c8f7836b07c708bf3320fc689c399514 (patch)
tree44362261b10d6f8bb3662c72b9fc83680fa3b107 /ironic
parent0b30506e6bc9b8674ea4e6eaca6fb46db2880dd3 (diff)
downloadironic-31439718c8f7836b07c708bf3320fc689c399514.tar.gz
Change readfp to read_file
readfp was deprecated since version 3.2 see [1] [1] https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.readfp Change-Id: I41ef623b662ac7f228ade3a01a2f177f8e64f26c
Diffstat (limited to 'ironic')
-rw-r--r--ironic/drivers/modules/ansible/playbooks/callback_plugins/ironic_log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/drivers/modules/ansible/playbooks/callback_plugins/ironic_log.py b/ironic/drivers/modules/ansible/playbooks/callback_plugins/ironic_log.py
index b8e4c3c69..fd98b9d6c 100644
--- a/ironic/drivers/modules/ansible/playbooks/callback_plugins/ironic_log.py
+++ b/ironic/drivers/modules/ansible/playbooks/callback_plugins/ironic_log.py
@@ -34,7 +34,7 @@ def parse_callback_config():
'use_journal': True,
'use_syslog': False}
try:
- config.readfp(open(basename + ".ini"))
+ config.read_file(open(basename + ".ini"))
if config.has_option('ironic', 'config_file'):
callback_config['ironic_config'] = config.get(
'ironic', 'config_file')