Skip to content

Commit 3051dfb

Browse files
committed
conditional code
1 parent 7c60c17 commit 3051dfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ jobs:
4848
if [ -f "$meta_req_file" ] && [ -f "$test_req_file" ]; then
4949
coll_req_file="${{ github.workspace }}/req.yml"
5050
python -c 'import sys; import yaml
51-
hsh1 = yaml.safe_load(open(sys.argv[0]))
52-
hsh2 = yaml.safe_load(open(sys.argv[1]))
51+
hsh1 = yaml.safe_load(open(sys.argv[1]))
52+
hsh2 = yaml.safe_load(open(sys.argv[2]))
5353
coll = list(set(hsh1["collections"]).union(hsh2["collections"]))
5454
hsh1["collections"] = coll
55-
yaml.safe_dump(hsh1, open(sys.argv[2], "w"))' "$meta_req_file" "$test_req_file" "$coll_req_file"
55+
yaml.safe_dump(hsh1, open(sys.argv[3], "w"))' "$meta_req_file" "$test_req_file" "$coll_req_file"
5656
elif [ -f "$meta_req_file" ]; then
5757
coll_req_file="$meta_req_file"
5858
elif [ -f "$test_req_file" ]; then

0 commit comments

Comments
 (0)