b8db8c2 sssctl: Showing help even when sssd not configured

2 files Authored by amitkumar25nov 5 years ago, Committed by jhrozek 5 years ago,
    sssctl: Showing help even when sssd not configured
    
    On a clean and unconfigured system, it's not possible
    to use --help.
    1) dnf install sssd-tools
    2) sssctl cache-remove --help
    Shows:
    [confdb_get_domains] (0x0010): No domains configured, fatal error!
    
    Solution: Donot check for confdb initialization when sssctl 3rd
    command line argument passed is '--help'.
    
    Please note when we run 'sssctl --help' on unconfigured system
    confdb check is not done and proper o/p is seen.
    
    Resolves: https://pagure.io/SSSD/sssd/issue/3634
    
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>
    
        
file modified
+12 -7
file modified
+1 -0