Skip to content

Commit

Permalink
controller: Fix bug in wildcard expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed May 3, 2023
1 parent 89dd0f9 commit 5d9107e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def build_fault_list(conf_list, combined_faults, ret_faults):
if "num_bytes" not in faultdev:
faultdev["num_bytes"] = [0]
if faultdev["fault_address"] == "*":
wildcard_fault = True
elif type(faultdev["fault_address"]) == list and "*" in faultdev["fault_address"]:
faultdev["fault_address"] = ["*"]
if type(faultdev["fault_address"]) == list and "*" in faultdev["fault_address"]:
wildcard_fault = True

ftype = detect_type(faultdev["fault_type"])
Expand Down

0 comments on commit 5d9107e

Please sign in to comment.