Skip to content

Commit

Permalink
coreos-meta-translator: update archs to arches
Browse files Browse the repository at this point in the history
In coreos/coreos-assembler#580 the `archs` key of builds.json was
updated to be `arches`.
  • Loading branch information
arithx committed Jul 11, 2019
1 parent 266d92f commit 606b2b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coreos-meta-translator/trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_extension(path, modifier):
parser.add_argument("--build-id", help="build id", required=False)
args = parser.parse_args()

archs = []
arches = []

with open(os.path.join(args.workdir, "builds", "builds.json"), 'r') as build_file:
build_json = json.load(build_file)
Expand All @@ -43,7 +43,7 @@ def get_extension(path, modifier):
if build.get('id') == args.build_id:
individual_build = build
break
archs = individual_build.get('archs')
arches = individual_build.get('arches')

outer_dir = os.path.join(args.workdir, "builds", args.build_id)
release_file = os.path.join(outer_dir, "release.json")
Expand All @@ -53,7 +53,7 @@ def get_extension(path, modifier):
with open(release_file, 'r') as w:
out = json.load(w)

files = [os.path.join(outer_dir, arch, "meta.json") for arch in archs]
files = [os.path.join(outer_dir, arch, "meta.json") for arch in arches]

for f in files:
with open(f, 'r') as w:
Expand Down

0 comments on commit 606b2b2

Please sign in to comment.