From 8dabad7c6bb882f632a3d2d9cacb626cbba863f0 Mon Sep 17 00:00:00 2001 From: Brad Williams Date: Wed, 30 Nov 2022 12:06:14 -0500 Subject: [PATCH] Forcing dictionary order --- ansible/rebuild_module.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/rebuild_module.sh b/ansible/rebuild_module.sh index ff9b80c..922aef1 100755 --- a/ansible/rebuild_module.sh +++ b/ansible/rebuild_module.sh @@ -19,8 +19,8 @@ fi pushd "$PACKAGES_DIR" # Update module digest so that pr.groovy can ensure it is run after each module change -cat $(find openshift/ -name '*.py' | sort) | md5sum > $DIR/rebuild_module.digest -ENCODED_TGZ=$(tar c --owner=0 --numeric-owner --group=0 --mtime='UTC 2019-01-01' $(find openshift/ -name '*.py' | sort) | gzip -c -n | base64 --wrap=0) +cat $(find openshift/ -name '*.py' | sort -d) | md5sum > $DIR/rebuild_module.digest +ENCODED_TGZ=$(tar c --owner=0 --numeric-owner --group=0 --mtime='UTC 2019-01-01' $(find openshift/ -name '*.py' | sort -d) | gzip -c -n | base64 --wrap=0) popd echo "#!/usr/bin/env python" > $OUTPUT_FILE @@ -45,4 +45,4 @@ done < "$TEMPLATE_FILE" if [[ "$replaced" != "1" ]]; then echo "Unable to find replacement pattern in template" exit 1 -fi \ No newline at end of file +fi