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
This commit is contained in:
Kaifeng Wang 2019-03-05 09:19:53 +08:00
parent f9734d3a49
commit 318ac4d087
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class InspectorScenarioTest(BaremetalScenarioTest):
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)