Skip to content

Commit

Permalink
Merge pull request #134 from bradmwilliams/dictionary-order-fix
Browse files Browse the repository at this point in the history
Forcing dictionary order
  • Loading branch information
bradmwilliams authored Nov 30, 2022
2 parents ec981bc + 8dabad7 commit 19304bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ansible/rebuild_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,4 +45,4 @@ done < "$TEMPLATE_FILE"
if [[ "$replaced" != "1" ]]; then
echo "Unable to find replacement pattern in template"
exit 1
fi
fi

0 comments on commit 19304bb

Please sign in to comment.