File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/cron.cpython-310.pyc
o
�N�g6p � @ sP d Z ddlZddlZddlZddlZddlZddlZddlZddl ZdZ
dZdZe�
e�Zdd� Zdd � Zd
d� Zd5dd
�Zdd� Zdd� Zd5dd�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zejj� ed"�Z!d6d#d$�Z"d7d&d'�Z#d(d)� Z$ % d7d*d+�Z%d6d,d-�Z& d8d.d/�Z'ejj� e'd0�Z(d5d1d2�Z)d3d4� Z*dS )9z�
Work with cron
.. note::
Salt does not escape cron metacharacters automatically. You should
backslash-escape percent characters and any other metacharacters that might
be interpreted incorrectly by the shell.
� Nz4# Lines below here are managed by Salt, do not edit
�SALT_CRON_IDENTIFIERz NO ID SETc C s t jj�d�r dS dS )N�crontabT)Fz2Cannot load cron module: crontab command not found)�salt�utils�path�which� r r �E/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/cron.py�__virtual__ s r
c C s8 t | t�s t| �} ztjj�| �W S ty Y dS w )N� )�
isinstance�strr r �stringutilsZ
to_unicode� TypeError)�valr r r �_ensure_string"