Using Python script  to access values from yaml dictionary & print some of 
the values as list . 

For Example -  Parse the each key and extract the “product_name”, 
“release_candidate” and “version“ & Print results as list

The yaml file looks like 



- releases:
    - gotcha:
        file_name: gtp.tar
        md5: 11f6987275613ca3ecf832ea59c1
        product_name: gotcha
        product_number: GTP 8881
        release_candidate: rc19
        version: 19.0.0
    - tp:
        file_name: tpr.tar
        md5: ebd7742ed8fff0472733c0cd8e
        product_name: tp
        product_number: TTP 8057
        release_candidate: rc25
        version: 25.0.0

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cdcb12c4-b6f6-4dbb-be42-b781e7d576d3%40googlegroups.com.

Reply via email to