From 9741087e927d8a9b06fbff3b79f765f079eb91a6 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 13 Aug 2019 16:20:28 +0200 Subject: [PATCH] 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 --- osbuild/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osbuild/__init__.py b/osbuild/__init__.py index ae29b9ec..a9c30d2c 100644 --- a/osbuild/__init__.py +++ b/osbuild/__init__.py @@ -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())