Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStiefvater committed Nov 26, 2020
1 parent 2582f62 commit f930e4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gvm/protocols/gmpv214/gmpv214.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ def modify_user(
) -> Any:

"""Modifies an existing user. Most of the fields need to be supplied
for changing a single field even if no change is wanted.
Else empty values are places instead.
for changing a single field even if no change is wanted for those.
Else empty values are inserted for the missing fields instead.
Arguments:
user_id: UUID of the user to be modified.
Expand Down
4 changes: 3 additions & 1 deletion gvm/protocols/gmpv7/gmpv7.py
Original file line number Diff line number Diff line change
Expand Up @@ -6080,7 +6080,9 @@ def modify_user(
ifaces_allow: Optional[bool] = False,
group_ids: Optional[List[str]] = None,
) -> Any:
"""Modifies an existing user.
"""Modifies an existing user. Most of the fields need to be supplied
for changing a single field even if no change is wanted for those.
Else empty values are inserted for the missing fields instead.
Arguments:
user_id: UUID of the user to be modified. Overrides name element
Expand Down

0 comments on commit f930e4d

Please sign in to comment.