File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/mssql.cpython-310.pyc
Back
o ;j9 � @ s d Z ddlZzddlZdZW n ey dZY nw ddddddd �Zd d� Zdd � ZG dd� dej j j�Zdd� Z dd� Zdd� Zdd� Zd3dd�Zdd� Zdd� Zdd � Zd4d!d"�Zd#d$� Zd5d%d&�Z d6d'd(�Zd)d*� Zd7d+d,�Zd-d.� Z d8d/d0�Zd1d2� ZdS )9a� Module to provide MS SQL Server compatibility to salt. :depends: - FreeTDS - pymssql Python module :configuration: In order to connect to MS SQL Server, certain configuration is required in minion configs/pillars on the relevant minions. Some sample pillars might look like:: mssql.server: 'localhost' mssql.port: 1433 mssql.user: 'sysdba' mssql.password: 'Some preferable complex password' mssql.database: '' The default for the port is '1433' and for the database is '' (empty string); in most cases they can be left at the default setting. Options that are directly passed into functions will overwrite options from configs or pillars. � NTFZ localhosti� Zsysdba� �Zserver�port�user�password�database�as_dictc C s t rdS dS )zC Only load this module if all imports succeeded bin exists T)FzYThe mssql execution module cannot be loaded: the pymssql python library is not available.)�HAS_ALL_IMPORTS� r r �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/mssql.py�__virtual__+ s r c K sR i }dD ]}|| v r| | ||<