diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-02-08 14:42:08 -0800 |
---|---|---|
committer | Ross Brattain <ross.b.brattain@intel.com> | 2017-02-09 21:27:46 +0000 |
commit | 6a9f0f9fbd1e86f320ccc188403cd2e1a2a66c70 (patch) | |
tree | f60c5a6599491bcfa83f7c2160e51efb7b451c3f /yardstick/benchmark/contexts/standalone.py | |
parent | 1787d1f400118de3f6bd60bc968cea39b181923e (diff) |
fix super() calls, must use explicit class name
self.__class__ is not correct. For Python 2 we have to
explicitly use the class name
see http://stackoverflow.com/questions/4235078/how-to-avoid-infinite-recursion-with-super
Change-Id: I584ca565707b7331c1742fb33c8b524f7b7c9bf9
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'yardstick/benchmark/contexts/standalone.py')
-rw-r--r-- | yardstick/benchmark/contexts/standalone.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/benchmark/contexts/standalone.py b/yardstick/benchmark/contexts/standalone.py index c1d963f50..eff700974 100644 --- a/yardstick/benchmark/contexts/standalone.py +++ b/yardstick/benchmark/contexts/standalone.py @@ -37,7 +37,7 @@ class StandaloneContext(Context): self.file_path = None self.nodes = [] self.nfvi_node = [] - super(self.__class__, self).__init__() + super(StandaloneContext, self).__init__() def read_config_file(self): """Read from config file""" |