github-actions[bot] opened a new pull request, #76088:
URL: https://github.com/apache/airflow/pull/76088

   `airflowctl connections import` assumed the file was a JSON object of
   objects. A file holding a list, a scalar, or an entry that is not an object
   failed with internal Python messages such as
   "'list' object has no attribute 'items'" or
   "'str' object has no attribute 'get'", which do not tell the user what is
   wrong with the file.
   
   Check the structure right after parsing, before building any request, and
   exit with a message that names the file, the offending connection id and the
   expected shape. `variables import` and `pools import` already validate their
   input the same way. No request is sent for a malformed file.
   (cherry picked from commit 1bcc8e6bdbc11f151a38a064a6950156b7a5e78a)
   
   Co-authored-by: Rishabh <[email protected]>


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [PR] [airflow-ctl/v0-1-test] ... github-actions[bot] (via GitHub) via commits

Reply via email to