f476d86 Add 'cache_dir' option to api.env

6 files Authored by cheimes 6 months ago, Committed by frenaud 6 months ago,
    Add 'cache_dir' option to api.env
    
    `api.env` now has a `cache_dir` option, which defaults to
    `os.path.join(USER_CACHE_PATH, 'ipa')`. Schema cache, server info, and
    KRA key cache use `api.env.cache_dir` as base directory. The option
    allows application to set a custom cache directory.
    
    Related: https://pagure.io/freeipa/issue/9438
    Related: https://bugzilla.redhat.com/show_bug.cgi?id=1513934
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    
        
file modified
+3 -5
file modified
+6 -0
file modified
+1 -0
file modified
+1 -0