mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Merge branch 'v2_fixing' into devel
Conflicts: v2/ansible/playbook/helpers.py
This commit is contained in:
commit
0603b9c62c
34 changed files with 505 additions and 426 deletions
|
@ -99,11 +99,14 @@ class DataLoader():
|
|||
def path_exists(self, path):
|
||||
return os.path.exists(path)
|
||||
|
||||
def is_file(self, path):
|
||||
return os.path.isfile(path)
|
||||
|
||||
def is_directory(self, path):
|
||||
return os.path.isdir(path)
|
||||
|
||||
def is_file(self, path):
|
||||
return os.path.isfile(path)
|
||||
def list_directory(self, path):
|
||||
return os.path.listdir(path)
|
||||
|
||||
def _safe_load(self, stream, file_name=None):
|
||||
''' Implements yaml.safe_load(), except using our custom loader class. '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue