fix for make webdocs

(cherry picked from commit 0e22afef52)
pull/30683/head
jborean93 7 years ago committed by Brian Coca
parent 11cc64db21
commit b92452f775

@ -24,6 +24,7 @@ Ansible Changes By Release
* updated porting guide with notes for callbacks and config
* Added backwards compatiblity shim for callbacks that do not inherit from CallbackBase
* Corrected issue with configuration and multiple ini entries being overwriten even when not set.
* backported fix for doc generation (plugin_formatter)
<a id="2.4"></a>

@ -120,6 +120,9 @@ def write_data(text, output_dir, outputname, module=None):
if output_dir is not None:
if module:
outputname = outputname % module
if not os.path.exists(output_dir):
os.makedirs(output_dir)
fname = os.path.join(output_dir, outputname)
fname = fname.replace(".py", "")
with open(fname, 'wb') as f:

Loading…
Cancel
Save