summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2016-10-03 13:01:22 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-10-20 09:56:08 +0200
commit2749964664a69bbb99d09409c1110095cbfcc664 (patch)
treee6d8c533d378e81280e4aacd041773676d9f7971 /src/python
parentef390162e72554b7f765c9c995e7825b10b2a841 (diff)
downloadsssd-2749964664a69bbb99d09409c1110095cbfcc664.tar.gz
sssd-2749964664a69bbb99d09409c1110095cbfcc664.tar.xz
sssd-2749964664a69bbb99d09409c1110095cbfcc664.zip
cache_req: move from switch to plugins; add logic
cache_req grown quite big from the original code and it turned out that using switch statements to branch code for different cases makes the code quite hard to read and further extend and any modification to the logic itself is difficult. This patch changes the switch statements to plugins with small functions and separates logic into multiple modules. This gives us better control over the code and improves readability and maintainability while keeping code duplication to minimum. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Petr Cech <pcech@redhat.com>
Diffstat (limited to 'src/python')
0 files changed, 0 insertions, 0 deletions