Skip to content

Fix M1Session cache update after creating Policy Templates #85

@ErikGaida

Description

@ErikGaida

Description

When creating a new Policy Template, the local M1Session cache is not correctly updated. As a result, the methode policyTemplateIds form the M1Session return the old list until the cache-until timeout.

In rt_m1_client/session.py, the method policyTemplateCreate updates the internal details cache (ps['policyTemplates']), but it fails to append the new ID to the list of IDs (ps['provisioningsession']['policyTemplateIds']).

Solution

Add missing logic to append the new ID in policyTemplateCreate and logic to remove the old ID in policyTemplateDelete

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Ready for review

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions