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