@@ -1249,12 +1249,22 @@ def _warn_if_soft_delete_policy_enabled(self, arg_name):
12491249 def _handle_temp_and_staging_locations (self , validator ):
12501250 temp_errors = validator .validate_gcs_path (self , 'temp_location' )
12511251 staging_errors = validator .validate_gcs_path (self , 'staging_location' )
1252+
1253+ temp_location = getattr (self , 'temp_location' , None )
1254+ staging_location = getattr (self , 'staging_location' , None )
1255+
1256+ if temp_location is not None and temp_errors :
1257+ _LOGGER .warning (temp_errors [0 ])
1258+
1259+ if staging_location is not None and staging_errors :
1260+ _LOGGER .warning (staging_errors [0 ])
1261+
12521262 if temp_errors and not staging_errors :
1253- setattr (self , 'temp_location' , getattr ( self , ' staging_location' ) )
1263+ setattr (self , 'temp_location' , staging_location )
12541264 self ._warn_if_soft_delete_policy_enabled ('staging_location' )
12551265 return []
12561266 elif staging_errors and not temp_errors :
1257- setattr (self , 'staging_location' , getattr ( self , ' temp_location' ) )
1267+ setattr (self , 'staging_location' , temp_location )
12581268 self ._warn_if_soft_delete_policy_enabled ('temp_location' )
12591269 return []
12601270 elif not staging_errors and not temp_errors :
0 commit comments