File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 22
33import shlex
44
5- from pyinfra import host
6- from pyinfra .api import StringCommand , operation
5+ from pyinfra import logger
6+ from pyinfra .api .command import StringCommand
7+ from pyinfra .api .operation import operation
78from pyinfra .api .util import try_int
9+ from pyinfra .context import host
810from pyinfra .facts .crontab import Crontab , CrontabFile
911from pyinfra .operations .util .files import sed_delete , sed_replace
1012
@@ -121,7 +123,7 @@ def comma_sep(value):
121123
122124 # Want the cron but it doesn't exist? Append the line
123125 elif present and not exists :
124- print ( "present" , present , " exists" , exists )
126+ logger . debug ( f "present: { present } , exists: { exists } " )
125127 if ctb : # append a blank line if cron entries already exist
126128 edit_commands .append ("echo '' >> {0}" .format (temp_filename ))
127129 if cron_name :
You can’t perform that action at this time.
0 commit comments