diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2020-05-13 19:47:02 -0700 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2020-05-14 09:14:37 -0700 |
commit | 26704b915b266176224e347299be4ff517f745f9 (patch) | |
tree | 2b774d60ec780d11902b150aa26656c9330ca787 /hacking | |
parent | 957ad8e76982a2f0c0a5da55e06e50b179096fcf (diff) | |
download | ansible-26704b915b266176224e347299be4ff517f745f9.tar.gz |
Turn pathlib paths into strs
Some APIs do not take a pathlib. They need to have a string
representation of a path. Transform the default path to a str
so those APIs will work with the default value.
Diffstat (limited to 'hacking')
-rw-r--r-- | hacking/build_library/build_ansible/command_plugins/collection_meta.py | 2 | ||||
-rw-r--r-- | hacking/build_library/build_ansible/command_plugins/dump_config.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hacking/build_library/build_ansible/command_plugins/collection_meta.py b/hacking/build_library/build_ansible/command_plugins/collection_meta.py index 7b7112e8f9..be58bd4742 100644 --- a/hacking/build_library/build_ansible/command_plugins/collection_meta.py +++ b/hacking/build_library/build_ansible/command_plugins/collection_meta.py @@ -42,7 +42,7 @@ class DocumentCollectionMeta(Command): default=DEFAULT_TEMPLATE_FILE, help="Jinja2 template to use for the config") parser.add_argument("-T", "--template-dir", action="store", dest="template_dir", - default=DEFAULT_TEMPLATE_DIR, + default=str(DEFAULT_TEMPLATE_DIR), help="directory containing Jinja2 templates") parser.add_argument("-o", "--output-dir", action="store", dest="output_dir", default='/tmp/', help="Output directory for rst files") diff --git a/hacking/build_library/build_ansible/command_plugins/dump_config.py b/hacking/build_library/build_ansible/command_plugins/dump_config.py index d1822d20e8..7811f4658c 100644 --- a/hacking/build_library/build_ansible/command_plugins/dump_config.py +++ b/hacking/build_library/build_ansible/command_plugins/dump_config.py @@ -46,7 +46,7 @@ class DocumentConfig(Command): default=DEFAULT_TEMPLATE_FILE, help="Jinja2 template to use for the config") parser.add_argument("-T", "--template-dir", action="store", dest="template_dir", - default=DEFAULT_TEMPLATE_DIR, + default=str(DEFAULT_TEMPLATE_DIR), help="directory containing Jinja2 templates") parser.add_argument("-o", "--output-dir", action="store", dest="output_dir", default='/tmp/', help="Output directory for rst files") |