mik-laj commented on a change in pull request #7413: [AIRFLOW-6793] Respect env variable in airflow config command URL: https://github.com/apache/airflow/pull/7413#discussion_r380264708
########## File path: airflow/configuration.py ########## @@ -372,6 +371,26 @@ def getsection(self, section): _section[key] = val return _section + def write(self, fp, space_around_delimiters=True): + """Write an .ini-format representation of the configuration state. + + If `space_around_delimiters' is True (the default), delimiters + between keys and values are surrounded by spaces. + + This is based on the configparsser.RawConfigParser.write method code to add support for Review comment: ```diff def write(self, fp, space_around_delimiters=True): """Write an .ini-format representation of the configuration state. If `space_around_delimiters' is True (the default), delimiters between keys and values are surrounded by spaces. """ if space_around_delimiters: d = " {} ".format(self._delimiters[0]) else: d = self._delimiters[0] if self._defaults: self._write_section(fp, self.default_section, self._defaults.items(), d) for section in self._sections: - self._write_section(fp, section, self._sections[section].items(), d) + self._write_section(fp, section, self.getsection(section).items(), d) ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services