From dc78c5aed401eb0ccc81605514df6e4533e09319 Mon Sep 17 00:00:00 2001 From: Siamak Erami Date: Wed, 24 Apr 2024 14:54:19 +0000 Subject: [PATCH] Fix super() usage for proper initialization of config file Correct the super().__init__(**kwargs) call to use Python 3's super() without including 'self' following the inheritance model. This change ensures proper initialization of the configuration file. Story: 2011115 Task: 50024 Change-Id: I8675ffe5a6116eb031b6ea1b4aac4214f41421e0 --- config_tempest/tempest_conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_tempest/tempest_conf.py b/config_tempest/tempest_conf.py index 594df4a5..1ca2402a 100644 --- a/config_tempest/tempest_conf.py +++ b/config_tempest/tempest_conf.py @@ -36,7 +36,7 @@ class TempestConf(configparser.ConfigParser): self.priority_sectionkeys = set() self.write_credentials = write_credentials - super().__init__(self, **kwargs) + super().__init__(**kwargs) def get_bool_value(self, value): """Returns boolean value of the string value given.