Re: Python-remove duplicate output

2018-11-22 Thread Bob Gailer
On Nov 22, 2018 8:50 AM, wrote: > > On Thursday, November 22, 2018 at 12:10:28 AM UTC+1, drvuc...@gmail.com wrote: > > How to remove duplicate lines and store output into one ine > > > >reservations = ec.describe_instances().get('Reservations', []) > > > >for reservation in reservations: >

Re: Python-remove duplicate output

2018-11-22 Thread marco . nawijn
On Thursday, November 22, 2018 at 12:10:28 AM UTC+1, drvuc...@gmail.com wrote: > How to remove duplicate lines and store output into one ine > >reservations = ec.describe_instances().get('Reservations', []) > >for reservation in reservations: > for instance in reservation['Instan

Re: Python-remove duplicate output

2018-11-21 Thread dieter
drvucano...@gmail.com writes: > How to remove duplicate lines and store output into one ine I do not understand "into one ine". > ... > Current Output: > aws-opsworks > aws-opsworks Ansible > > Desired output: > aws-opsworks Ansible Looks for me as if you do not want to remove duplicate lines:

Python-remove duplicate output

2018-11-21 Thread drvucanovic
How to remove duplicate lines and store output into one ine reservations = ec.describe_instances().get('Reservations', []) for reservation in reservations: for instance in reservation['Instances']: tags = {} for tag in instance['Tags']: ta