mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 22:01:06 +00:00 
			
		
		
		
	log-dump.sh: better logging in case of error from listing GCS
This commit is contained in:
		| @@ -435,7 +435,9 @@ function dump_nodes() { | |||||||
| # Sets: | # Sets: | ||||||
| #   NON_LOGEXPORTED_NODES | #   NON_LOGEXPORTED_NODES | ||||||
| function find_non_logexported_nodes() { | function find_non_logexported_nodes() { | ||||||
|   succeeded_nodes=$(gsutil ls ${gcs_artifacts_dir}/logexported-nodes-registry) || return 1 |   local file="${gcs_artifacts_dir}/logexported-nodes-registry" | ||||||
|  |   echo "Listing marker files ($file) for successful nodes..." | ||||||
|  |   succeeded_nodes=$(gsutil ls "${file}") || return 1 | ||||||
|   echo "Successfully listed marker files for successful nodes" |   echo "Successfully listed marker files for successful nodes" | ||||||
|   NON_LOGEXPORTED_NODES=() |   NON_LOGEXPORTED_NODES=() | ||||||
|   for node in "${NODE_NAMES[@]}"; do |   for node in "${NODE_NAMES[@]}"; do | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user