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 deb099d commit 47c3c76Copy full SHA for 47c3c76
src/pyinfra/operations/crontab.py
@@ -84,7 +84,9 @@ 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 if cron_name is None else None], name=cron_name)
+ existing_crontab = ctb.get_command(
88
+ command=command if cron_name is None else None, name=cron_name
89
+ )
90
existing_crontab_command = existing_crontab["command"] if existing_crontab else command
91
existing_crontab_match = existing_crontab["command"] if existing_crontab else command
92
0 commit comments