remove file ownership and bug in util script
Change-Id: I3e33ebc4ded74e645b600945336512aafb5966bf
diff --git a/roles/head-node/files/commands/cord-registry b/roles/head-node/files/commands/cord-registry
index c4faacb..45b6cdd 100755
--- a/roles/head-node/files/commands/cord-registry
+++ b/roles/head-node/files/commands/cord-registry
@@ -63,7 +63,7 @@
for i in $(curl -sSL http://$REG/v2/_catalog | jq '.repositories | .[]' | sed -e 's/"//g'); do
/bin/echo -n "$COMMA{\"registry\":\"${REG}/$i\",\"tags\":["
C2=
- for t in $(curl -sSL http://$REG/v2/redis/tags/list | jq '.tags | .[]' | sed -e 's/"//g'); do
+ for t in $(curl -sSL http://$REG/v2/$i/tags/list | jq '.tags | .[]' | sed -e 's/"//g'); do
echo -n "${C2}\"$t\""
C2=","
done
@@ -75,7 +75,7 @@
OUT=$(mktemp)
echo "REPOSITORY,TAG" > $OUT
for i in $(curl -sSL http://$REG/v2/_catalog | jq '.repositories | .[]' | sed -e 's/"//g'); do
- for t in $(curl -sSL http://$REG/v2/redis/tags/list | jq '.tags | .[]' | sed -e 's/"//g'); do
+ for t in $(curl -sSL http://$REG/v2/$i/tags/list | jq '.tags + [] | .[]' | sed -e 's/"//g'); do
/bin/echo -e "${REG}/$i,$t" >> $OUT
done
done