From a9f5b58a015ca72768b25cdcc327ac2309f2c82a Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 5 Dec 2022 10:28:22 -0800 Subject: [PATCH] fix: update the JSON keys for latest 'mc' release (#16171) --- docs/site-replication/run-multi-site-ldap.sh | 4 ++-- docs/site-replication/run-multi-site-minio-idp.sh | 4 ++-- docs/site-replication/run-multi-site-oidc.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/site-replication/run-multi-site-ldap.sh b/docs/site-replication/run-multi-site-ldap.sh index b3134739f..2a51e3c38 100755 --- a/docs/site-replication/run-multi-site-ldap.sh +++ b/docs/site-replication/run-multi-site-ldap.sh @@ -229,7 +229,7 @@ fi ./mc mb --with-lock minio3/newbucket-olock sleep 5 -enabled_minio2=$(./mc stat --json minio2/newbucket-olock| jq -r .metadata.ObjectLock.enabled) +enabled_minio2=$(./mc stat --json minio2/newbucket-olock| jq -r .ObjectLock.enabled) if [ $? -ne 0 ]; then echo "expected bucket to be mirrored with object-lock but not present, exiting..." exit_1; @@ -240,7 +240,7 @@ if [ "${enabled_minio2}" != "Enabled" ]; then exit_1; fi -enabled_minio1=$(./mc stat --json minio1/newbucket-olock| jq -r .metadata.ObjectLock.enabled) +enabled_minio1=$(./mc stat --json minio1/newbucket-olock| jq -r .ObjectLock.enabled) if [ $? -ne 0 ]; then echo "expected bucket to be mirrored with object-lock but not present, exiting..." exit_1; diff --git a/docs/site-replication/run-multi-site-minio-idp.sh b/docs/site-replication/run-multi-site-minio-idp.sh index aca0dcc29..45f7b0056 100755 --- a/docs/site-replication/run-multi-site-minio-idp.sh +++ b/docs/site-replication/run-multi-site-minio-idp.sh @@ -258,7 +258,7 @@ fi ./mc mb --with-lock minio3/newbucket-olock sleep 5 -enabled_minio2=$(./mc stat --json minio2/newbucket-olock| jq -r .metadata.ObjectLock.enabled) +enabled_minio2=$(./mc stat --json minio2/newbucket-olock| jq -r .ObjectLock.enabled) if [ $? -ne 0 ]; then echo "expected bucket to be mirrored with object-lock but not present, exiting..." exit_1; @@ -269,7 +269,7 @@ if [ "${enabled_minio2}" != "Enabled" ]; then exit_1; fi -enabled_minio1=$(./mc stat --json minio1/newbucket-olock| jq -r .metadata.ObjectLock.enabled) +enabled_minio1=$(./mc stat --json minio1/newbucket-olock| jq -r .ObjectLock.enabled) if [ $? -ne 0 ]; then echo "expected bucket to be mirrored with object-lock but not present, exiting..." exit_1; diff --git a/docs/site-replication/run-multi-site-oidc.sh b/docs/site-replication/run-multi-site-oidc.sh index 743c7593f..40c05b53e 100755 --- a/docs/site-replication/run-multi-site-oidc.sh +++ b/docs/site-replication/run-multi-site-oidc.sh @@ -214,7 +214,7 @@ fi ./mc mb --with-lock minio3/newbucket-olock sleep 5 -enabled_minio2=$(./mc stat --json minio2/newbucket-olock| jq -r .metadata.ObjectLock.enabled) +enabled_minio2=$(./mc stat --json minio2/newbucket-olock| jq -r .ObjectLock.enabled) if [ $? -ne 0 ]; then echo "expected bucket to be mirrored with object-lock but not present, exiting..." exit_1; @@ -225,7 +225,7 @@ if [ "${enabled_minio2}" != "Enabled" ]; then exit_1; fi -enabled_minio1=$(./mc stat --json minio1/newbucket-olock| jq -r .metadata.ObjectLock.enabled) +enabled_minio1=$(./mc stat --json minio1/newbucket-olock| jq -r .ObjectLock.enabled) if [ $? -ne 0 ]; then echo "expected bucket to be mirrored with object-lock but not present, exiting..." exit_1;