This repository was archived by the owner on Sep 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 152
Rename 'target' to 'targets' in notification template API doc #659
Open
samcarpentier
wants to merge
2
commits into
ansible:master
Choose a base branch
from
samcarpentier:api_doc_rename_targets_field
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Rename 'target' to 'targets' in notification template API doc #659
samcarpentier
wants to merge
2
commits into
ansible:master
from
samcarpentier:api_doc_rename_targets_field
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 similar comments
Member
|
Does this need to be changed here as well?
|
Author
|
@AlanCoding It appears so. There seems to be a discrepancy in the file you referenced. Both |
Member
|
I still can't quite use it it looks like maybe it just needs to be transformed into a list, you could accept a comma separated string, and just |
Author
|
Sounds good. I will take a look at this a bit later. Thanks for your feedback. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Python API requires the
targetsfield to be passed when creating an IRC notification template.Using the
targetfield, like the doc currently proposes, causes an error to be thrown.{ "detail": "NotificationTemplate has no field named 'target'" }Using the
targetsfield solved the issue and creates the notification template successfully.