a )g@s\ddlmZmZmZeZddlZddlmZ ddl m Z ddl m Z iZddZdd ZdS) )absolute_importdivisionprint_functionN) constants)to_bytes)paramikocCsz t|WStyYn0t|dd}d}z>tj|ddgtjtjd}|\}}d|vsfd|vrjd }Wntyd }Yn0|t|<|S) NZsurrogate_or_strict)errorsTz-oZControlPersist)stdoutstderrsBad configuration optionsUsage:F)_HAS_CONTROLPERSISTKeyErrorr subprocessPopenPIPEZ communicateOSError)Zssh_executableZ b_ssh_execZhas_cpcmdouterrr?/usr/lib/python3.9/site-packages/ansible/utils/ssh_functions.pycheck_for_controlpersist!s      rcCs,tjdkr(tds"tdur"dt_ndt_dS)NZsmartZsshr)CZDEFAULT_TRANSPORTrrrrrrset_default_transport7s r)Z __future__rrrtypeZ __metaclass__r ZansiblerrZansible.module_utils._textrZ$ansible.module_utils.compat.paramikorr rrrrrrs