(cherry picked from commit 0e22afef5205deee3e829bb643c332ae1a035813)
jborean93 authored on 2017/09/21 10:09:55... | ... |
@@ -24,6 +24,7 @@ Ansible Changes By Release |
24 | 24 |
* updated porting guide with notes for callbacks and config |
25 | 25 |
* Added backwards compatiblity shim for callbacks that do not inherit from CallbackBase |
26 | 26 |
* Corrected issue with configuration and multiple ini entries being overwriten even when not set. |
27 |
+* backported fix for doc generation (plugin_formatter) |
|
27 | 28 |
|
28 | 29 |
<a id="2.4"></a> |
29 | 30 |
|
... | ... |
@@ -120,6 +120,9 @@ def write_data(text, output_dir, outputname, module=None): |
120 | 120 |
if output_dir is not None: |
121 | 121 |
if module: |
122 | 122 |
outputname = outputname % module |
123 |
+ |
|
124 |
+ if not os.path.exists(output_dir): |
|
125 |
+ os.makedirs(output_dir) |
|
123 | 126 |
fname = os.path.join(output_dir, outputname) |
124 | 127 |
fname = fname.replace(".py", "") |
125 | 128 |
with open(fname, 'wb') as f: |