mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-02 20:24:23 -07:00
Fix CI issues
This commit is contained in:
parent
5c28fc5456
commit
94c9bd304a
2 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ class CronVar(object):
|
||||||
self.cron_file = os.path.join('/etc/cron.d', cron_file)
|
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):
|
if not os.path.isdir(parent_dir):
|
||||||
module.fail_json(msg=f"Parent directory '{parent_dir}' does not exist for cron_file: '{cron_file}'")
|
module.fail_json(msg="Parent directory '{}' does not exist for cron_file: '{}'".format(parent_dir, cron_file))
|
||||||
else:
|
else:
|
||||||
self.cron_file = None
|
self.cron_file = None
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@
|
||||||
cronvar:
|
cronvar:
|
||||||
name: NOPARENT_VAR
|
name: NOPARENT_VAR
|
||||||
value: noparentval
|
value: noparentval
|
||||||
cron_file: /nonexistent/foo
|
cron_file: /nonexistent/foo
|
||||||
user: root
|
user: root
|
||||||
register: invalid_directory_cronvar_result
|
register: invalid_directory_cronvar_result
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue