Merge "Remove logic for legacy Modulefile"

This commit is contained in:
Zuul
2023年10月13日 15:39:49 +00:00
committed by Gerrit Code Review

View File

@@ -3,14 +3,10 @@
- shell:
cmd:|
set -e
if [ -f Modulefile -o -f metadata.json ]; then
if [ -f Modulefile ]; then
MODULE=$(awk '/^name/ {print $NF}' Modulefile |tr -d \"\')
elif [ -f metadata.json ]; then
MODULE=$(python3 -c 'import json;print(json.load(open("metadata.json"))["name"])')
fi
if [ -f metadata.json ]; then
MODULE=$(python3 -c 'import json;print(json.load(open("metadata.json"))["name"])')
if [ -z "$MODULE" ]; then
echo "Module name not defined in Modulefile or metadata.json"
echo "Module name not defined in metadata.json"
else
mkdir -p "$MODULE"
rsync -a --exclude="$MODULE" --exclude ".*" . "$MODULE"
Reference in New Issue
openstack/puppet-openstack-integration
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.