Skip to content

[BUG] Source says "Not a typo.", but I'm pretty sure it's a typo #65295

Closed
@bendikro

Description

Description
On line 445 in salt/modules/nftables.py we find:

    # Not a typo. Invert the dictionary twice to get unique values only.
    nft_families = {v: k for k, v in _NFTABLES_FAMILIES.items()}
    nft_families = {v: k for k, v in _NFTABLES_FAMILIES.items()}

How do these two identical lines make sense?

Metadata

Assignees

No one assigned

    Labels

    Bugbroken, incorrect, or confusing behaviorneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions