footmark/ecs/securitygroup.py [60:73]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if not isinstance(rule, dict):
            module.fail_json(msg='Invalid rule parameter type [{0}].'.format(type(rule)))

        find = False
        for per in self.permissions:
            if per.get('direction', "") != direction:
                continue
            for key, value in list(rule.items()):
                if value != per.get(key, ""):
                    find = False
                    break
                find = True
            if find:
                break
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



footmark/ecs/securitygroup.py [87:100]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if not isinstance(rule, dict):
            module.fail_json(msg='Invalid rule parameter type [{0}].'.format(type(rule)))

        find = False
        for per in self.permissions:
            if per.get('direction', "") != direction:
                continue
            for key, value in list(rule.items()):
                if value != per.get(key, ""):
                    find = False
                    break
                find = True
            if find:
                break
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



