@@ -32,26 +32,26 @@ function get_current_state_file() {
3232 fi
3333 fi
3434
35- # ## GCP
36- if [ $CLOUDPROVIDER == " gcp" ]; then
37- gsutil ls $GCP_STORAGE_BUCKET /$REPLICATION_FOLDER /state.txt
38- if [[ $? -eq 0 ]]; then
39- echo " File exist, let's get it from $CLOUDPROVIDER - $GCP_STORAGE_BUCKET "
40- gsutil cp $GCP_STORAGE_BUCKET /$REPLICATION_FOLDER /state.txt $workingDirectory /state.txt
41- fi
42- fi
43-
44- # ## Azure
45- if [ $CLOUDPROVIDER == " azure" ]; then
46- state_file_exists=$( az storage blob exists --container-name $AZURE_CONTAINER_NAME --name $REPLICATION_FOLDER /state.txt --query=" exists" )
47- if [[ $state_file_exists == " true" ]]; then
48- echo " File exist, let's get it from $CLOUDPROVIDER - $AZURE_CONTAINER_NAME "
49- az storage blob download \
50- --container-name $AZURE_CONTAINER_NAME \
51- --name $REPLICATION_FOLDER /state.txt \
52- --file $workingDirectory /state.txt --query=" name"
53- fi
54- fi
35+ # # ## GCP
36+ # if [ $CLOUDPROVIDER == "gcp" ]; then
37+ # gsutil ls $GCP_STORAGE_BUCKET/$REPLICATION_FOLDER/state.txt
38+ # if [[ $? -eq 0 ]]; then
39+ # echo "File exist, let's get it from $CLOUDPROVIDER - $GCP_STORAGE_BUCKET"
40+ # gsutil cp $GCP_STORAGE_BUCKET/$REPLICATION_FOLDER/state.txt $workingDirectory/state.txt
41+ # fi
42+ # fi
43+
44+ # # ## Azure
45+ # if [ $CLOUDPROVIDER == "azure" ]; then
46+ # state_file_exists=$(az storage blob exists --container-name $AZURE_CONTAINER_NAME --name $REPLICATION_FOLDER/state.txt --query="exists")
47+ # if [[ $state_file_exists=="true" ]]; then
48+ # echo "File exist, let's get it from $CLOUDPROVIDER - $AZURE_CONTAINER_NAME"
49+ # az storage blob download \
50+ # --container-name $AZURE_CONTAINER_NAME \
51+ # --name $REPLICATION_FOLDER/state.txt \
52+ # --file $workingDirectory/state.txt --query="name"
53+ # fi
54+ # fi
5555 else
5656 echo " File $workingDirectory /state.txt exist in local storage"
5757 echo " File $workingDirectory /state.txt content:"
0 commit comments