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/heat.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/heat.py')
-rw-r--r-- | yardstick/benchmark/contexts/heat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/benchmark/contexts/heat.py b/yardstick/benchmark/contexts/heat.py index 0346efcf4..a97a3e2c4 100644 --- a/yardstick/benchmark/contexts/heat.py +++ b/yardstick/benchmark/contexts/heat.py @@ -55,7 +55,7 @@ class HeatContext(Context): self.key_filename = ''.join( [YARDSTICK_ROOT_PATH, 'yardstick/resources/files/yardstick_key-', get_short_key_uuid(self.key_uuid)]) - super(self.__class__, self).__init__() + super(HeatContext, self).__init__() def init(self, attrs): """initializes itself from the supplied arguments""" |