Stage/init: fix the order of arguments

Make the order of argumnets in line with how it is used (and also
how it is conceptionally closer to the pipeline json document).

This makes no practical difference as the two arguments were both
just used for computing the hash.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-08-13 16:20:28 +02:00
parent 6d7cd1b93c
commit 9741087e92

View file

@ -276,7 +276,7 @@ def print_header(title, options):
class Stage:
def __init__(self, name, base, build, options):
def __init__(self, name, build, base, options):
m = hashlib.sha256()
m.update(json.dumps(name, sort_keys=True).encode())
m.update(json.dumps(build, sort_keys=True).encode())