Skip to content

Commit

Permalink
Replaced all load() usages with full_load()
Browse files Browse the repository at this point in the history
  • Loading branch information
costeanadrian committed May 26, 2022
1 parent 8050d06 commit db566cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def _doc_to_text(text):

@staticmethod
def _get_module_params(module):
docs = yaml.load(module.DOCUMENTATION)
docs = yaml.full_load(module.DOCUMENTATION)
return {k: {
'description': ModuleDocGenerator._doc_to_text(v.get('description')),
'required': v.get('required', False),
Expand All @@ -279,7 +279,7 @@ def _get_module_params(module):

@staticmethod
def _get_module_return_values(module):
return_params = yaml.load(module.RETURN)
return_params = yaml.full_load(module.RETURN)
return {k: {
'description': ModuleDocGenerator._doc_to_text(v.get('description')),
'returned': v.get('returned', ''),
Expand Down

0 comments on commit db566cb

Please sign in to comment.