commit | 318ac4d0879b3b7174ce9926a0ae11af12d2d6a8 | [log] [tgz] |
---|---|---|
author | Kaifeng Wang <kaifeng.w@gmail.com> | Tue Mar 05 09:19:53 2019 +0800 |
committer | Kaifeng Wang <kaifeng.w@gmail.com> | Tue Mar 05 09:19:53 2019 +0800 |
tree | 90b6da48d5a13de7f192655261c38adf480e2d74 | |
parent | f9734d3a498f7a480327a2d6a531dfe371279604 [diff] |
inspector py3 gate fix Patch [1] breaks inspector's python3 job observed from from [2]. [1] https://review.openstack.org/#/c/638959/ [2] https://review.openstack.org/#/c/640705 Change-Id: I4a42ff6173fef3213605e22df6cdaf67da16ec15
diff --git a/ironic_tempest_plugin/tests/scenario/introspection_manager.py b/ironic_tempest_plugin/tests/scenario/introspection_manager.py index d39e0a7..c45f285 100644 --- a/ironic_tempest_plugin/tests/scenario/introspection_manager.py +++ b/ironic_tempest_plugin/tests/scenario/introspection_manager.py
@@ -113,7 +113,7 @@ self.introspection_client.purge_rules() def rule_import(self, rule_path): - with open(rule_path, 'r') as fp: + with open(rule_path, 'rb') as fp: rules = json.load(fp) self.introspection_client.create_rules(rules)