dnf update -yでInvalid configuration valueのメッセージが出る

■ Message

# dnf update -y
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Last metadata expiration check: 3:08:19 ago on Mon 13 Dec 2021 06:26:32 PM JST.
Dependencies resolved.
Nothing to do.
Complete! #

■ 対策
・バックアップ

# sed -iBAK '/^failovermethod=/d' /etc/yum.repos.d/*.repo

・文字の置き換え

# sed '/^failovermethod=/d' /etc/yum.repos.d/*.repo

・確認

# dnf upgrade
CentOS Linux 8 - AppStream                       11 kB/s | 4.3 kB     00:00
CentOS Linux 8 - BaseOS                         8.7 kB/s | 3.9 kB     00:00
CentOS Linux 8 - Extras                         3.4 kB/s | 1.5 kB     00:00
MariaDB                                         8.5 kB/s | 3.4 kB     00:00
Extra Packages for Enterprise Linux 8 - x86_64   15 kB/s | 6.1 kB     00:00
Extra Packages for Enterprise Linux Modular 8 -  60 kB/s | 9.4 kB     00:00
Node.js Packages for Enterprise Linux 8 - x86_6 8.5 kB/s | 2.5 kB     00:00
Remi's Modular repository for Enterprise Linux  494  B/s | 858  B     00:01
Safe Remi's RPM repository for Enterprise Linux 534  B/s | 858  B     00:01
Dependencies resolved.
Nothing to do.
Complete!
# dnf update -y
Last metadata expiration check: 0:00:08 ago on Mon 13 Dec 2021 09:38:34 PM JST.
Dependencies resolved.
Nothing to do.
Complete!
#