diff options
author | Iury Gregory Melo Ferreira <imelofer@redhat.com> | 2020-03-13 09:47:04 +0100 |
---|---|---|
committer | Iury Gregory Melo Ferreira <imelofer@redhat.com> | 2020-03-13 09:47:04 +0100 |
commit | 31439718c8f7836b07c708bf3320fc689c399514 (patch) | |
tree | 44362261b10d6f8bb3662c72b9fc83680fa3b107 /ironic | |
parent | 0b30506e6bc9b8674ea4e6eaca6fb46db2880dd3 (diff) | |
download | ironic-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.py | 2 |
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') |