79f9ba5 ipa-adtrust-install: remote command fails if ipa-server-trust-ad pkg missing

Authored and Committed by frenaud 4 years ago
    ipa-adtrust-install: remote command fails if ipa-server-trust-ad pkg missing
    
    When the command ipa-adtrust-install --add-agents is run, it executes
    remotely the command trust_enable_agent. This command does not require
    the package ipa-server-trust-ad to be installed on the remote node, but
    fails if it's not the case because dbus is not imported.
    Need to move the "import dbus" outside of the try/except related to
    dcerpc import.
    
    Related: https://pagure.io/freeipa/issue/7600
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    Reviewed-By: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    
        
file modified
+2 -2