diff --git a/plugins/modules/cronvar.py b/plugins/modules/cronvar.py index 7fbe9f4b4c..804292a908 100644 --- a/plugins/modules/cronvar.py +++ b/plugins/modules/cronvar.py @@ -135,7 +135,7 @@ class CronVar(object): self.cron_file = cron_file else: self.cron_file = os.path.join('/etc/cron.d', cron_file) - parent_dir = os.path.dirname(self.cron_file) + parent_dir = os.path.dirname(self.cron_file) if not os.path.isdir(parent_dir): module.fail_json(msg=f"Parent directory '{parent_dir}' does not exist for cron_file: '{cron_file}'") else: