We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73cc854 commit 373ff53Copy full SHA for 373ff53
pyinfra/operations/crontab.py
@@ -84,7 +84,7 @@ def comma_sep(value):
84
ctb = ctb0
85
name_comment = "# pyinfra-name={0}".format(cron_name)
86
87
- existing_crontab = ctb.get_command(command=command, name=cron_name)
+ existing_crontab = ctb.get_command(command=[command if cron_name is None else None], name=cron_name)
88
existing_crontab_command = existing_crontab["command"] if existing_crontab else command
89
existing_crontab_match = existing_crontab["command"] if existing_crontab else command
90
0 commit comments