-
Notifications
You must be signed in to change notification settings - Fork 9
Do not deprecate vm_nic records return value #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| type: list | ||
| elements: str | ||
| sample: 192.0.2.1 | ||
| records: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the "type" needs to be list? Also the second line under "description" is not needed anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List is ok, a single NIC can have multiple IP addresses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I can see now that it is not clear that this question is meant for "records"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the second line from "description", thank you for noticing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And type: list, elements: dict.
| assert success is True | ||
| assert results == { | ||
| "changed": False, | ||
| "records": {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be an empty list for the "records"? In the case of ensure_absent() an empty list is returned
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we have incorrectly mocked return values. I do not want to extend this PR with fixing unittests.
81110c5 to
60f329e
Compare
The module does work with list of NICs (the items input parameter). It is natural to also return a list of NICs. Reverts db9dff7 Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
60f329e to
23f7e29
Compare
The module does work with list of NICs (the items input parameter). It is natural to also return a list of NICs.
Reverts db9dff7
Draft: until at least one more person agrees for vm_nic module
recordsis ok, andrecordis not.