diff options
author | Vanou Ishii <ishii.vanou@fujitsu.com> | 2022-08-05 20:03:39 +0900 |
---|---|---|
committer | Julia Kreger <juliaashleykreger@gmail.com> | 2022-08-09 14:24:56 +0000 |
commit | 1126f5a8c2a29570e6c75e1651147c46e4ef57f2 (patch) | |
tree | 9f8120f320f9272102eb71892e17aa2ad7bf4b1f | |
parent | a0dde80fcfdf3f7a2ad27be6c9a294fb81cbea25 (diff) | |
download | ironic-1126f5a8c2a29570e6c75e1651147c46e4ef57f2.tar.gz |
Change molds option to appropriate class
At current, retry_attempt & retry_interval in ironic.conf [molds]
is instance of StrOpt. However it should be IntOpt class.
If it remains to StrOpt class, tenacity.retry wrapper in common/molds.py
will fail with TypeError.
Change-Id: Iafedf2ec0326009585c1cac251ecae65c9e666ac
Story: 2010215
Task: 45957
(cherry picked from commit 35bc014ed94ee0c78ee8d44113fcea721f0c1af0)
-rw-r--r-- | ironic/conf/molds.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic/conf/molds.py b/ironic/conf/molds.py index 4cec1749a..53724598e 100644 --- a/ironic/conf/molds.py +++ b/ironic/conf/molds.py @@ -26,11 +26,11 @@ opts = [ cfg.StrOpt('password', help=_('Password for "http" Basic auth. By default set ' 'empty.')), - cfg.StrOpt('retry_attempts', + cfg.IntOpt('retry_attempts', default=3, help=_('Retry attempts for saving or getting configuration ' 'molds.')), - cfg.StrOpt('retry_interval', + cfg.IntOpt('retry_interval', default=3, help=_('Retry interval for saving or getting configuration ' 'molds.')) |