74e66ba Fix occasional 'whoami.data is undefined' error in FreeIPA web UI

Authored and Committed by stsymbal 4 years ago
    Fix occasional 'whoami.data is undefined' error in FreeIPA web UI
    
    'Metadata' phase (Web UI initialization flow) doesn't wait "whoami" response.
    It causes the error when on the next phase "whoami" data is undefined.
    To avoid this "whoami" request now has flag async = false,
    so init_metadata waits until it will be completed.
    
    Ticket: https://pagure.io/freeipa/issue/7917
    
    Signed-off-by: Serhii Tsymbaliuk <stsymbal@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    Reviewed-By: Armando Neto <abiagion@redhat.com>