Skip to content

variables and tables comparison broken for ApplicationService #248

@juliantaylor

Description

@juliantaylor

the comparison of the variables and tables in the ApplicationService in the equality operator is broken when the length of the lists change:
https://github.com/f5devcentral/f5-cccl/blob/master/f5_cccl/resource/ltm/app_service.py#L62

        if not all(v in self._data['variables']
                   for v in other.data['variables']):

This comparison will fail when the other list is shorter than the self list.
This breaks the for example update using the k8s-bigipcontroller see F5Networks/k8s-bigip-ctlr#1038

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions