Add pydoc return value to create_ifmod

This commit is contained in:
Joona Hoikkala 2019-04-02 16:00:33 +03:00
parent 794c1dc13f
commit 3d811a784d
No known key found for this signature in database
GPG key ID: D5AA86BBF9B29A5C

View file

@ -322,6 +322,10 @@ class ApacheParser(object):
:param bool beginning: If the IfModule should be created to the beginning
of augeas path DOM tree.
:returns: Augeas path of the newly created IfModule directive.
The path may be dynamic, i.e. .../IfModule[last()]
:rtype: str
"""
if beginning:
c_path_arg = "{}/IfModule[1]/arg".format(aug_conf_path)