File tree Expand file tree Collapse file tree
plugins/gcp/fix_plugin_gcp/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -651,19 +651,18 @@ def __exit__(
651651 except Exception as ex :
652652 errors = {f"ParseError:unknown:{ ex } " }
653653 pass
654- error_summary = ", " .join (errors )
654+ error_summary = " Error Codes: " + ( " , " .join (errors )) if errors else ""
655655
656656 if errors and errors .issubset (self .expected_errors ):
657657 log .info (
658658 f"Expected Exception while collecting{ self .extra_info } ({ exc_type .__name__ } ): "
659- f"{ error_details } Error Codes: { error_summary } . Ignore."
659+ f"{ error_details } { error_summary } . Ignore."
660660 )
661661 return True
662662
663663 if not Config .gcp .discard_account_on_resource_error :
664664 self .core_feedback .error (
665- f"Error while collecting{ self .extra_info } ({ exc_type .__name__ } ): "
666- f"{ error_details } Error Codes: { error_summary } " ,
665+ f"Error while collecting{ self .extra_info } ({ exc_type .__name__ } ): " f"{ error_details } { error_summary } " ,
667666 log ,
668667 )
669668 return True
You can’t perform that action at this time.
0 commit comments