Thanks! That got me to where I wanted.
- David
On Wednesday, August 7, 2019 at 11:58:26 AM UTC-7, Kai Stian Olstad wrote:
>
> On 07.08.2019 20:07, David Reagan wrote:
> > How can I return a list from a dict based on a sub items value?
> >
> > If I have a dictionary like this:
> >
> >
On 07.08.2019 20:07, David Reagan wrote:
> How can I return a list from a dict based on a sub items value?
>
> If I have a dictionary like this:
>
> ospackages:
>>fail2ban:
>> state: "present"
>> Ubuntu:
>>1604: "fail2ban"
>>1804: "fail2ban"
>> Debian:
>>
How can I return a list from a dict based on a sub items value?
If I have a dictionary like this:
ospackages:
> fail2ban:
> state: "present"
> Ubuntu:
> 1604: "fail2ban"
> 1804: "fail2ban"
> Debian:
> 9: "fail2ban"
> CentOS:
> 7: "fail2ban"
>