azurelinuxagent/common/protocol/extensions_goal_state_from_extensions_config.py [206:215]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            for ext_handler in self._extensions:
                for extension in ext_handler.settings:
                    if extension.protectedSettings is not None:
                        original = text
                        text = text.replace(extension.protectedSettings, "***REDACTED***")
                        if text == original:
                            return 'Could not redact protectedSettings for {0}'.format(extension.name)
            return text
        except Exception as e:
            return "Error redacting text: {0}".format(e)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



azurelinuxagent/common/protocol/extensions_goal_state_from_vm_settings.py [155:165]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            for ext_handler in self._extensions:
                for extension in ext_handler.settings:
                    if extension.protectedSettings is not None:
                        original = text
                        text = text.replace(extension.protectedSettings, "***REDACTED***")
                        if text == original:
                            return 'Could not redact protectedSettings for {0}'.format(extension.name)

            return text
        except Exception as e:
            return "Error redacting text: {0}".format(e)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



