-
Notifications
You must be signed in to change notification settings - Fork 23
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
ref: Migrate object_cluster_list module to ListModule base class; add deprecation support to ListModule and InfoModule #575
ref: Migrate object_cluster_list module to ListModule base class; add deprecation support to ListModule and InfoModule #575
Conversation
@@ -10,18 +10,6 @@ | |||
# - assert: | |||
# that: | |||
# - no_filter.clusters | length >= 1 | |||
# | |||
# - name: List regions with filter on region |
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.
This no longer filters as expected in both the old and new module implementations. Given this is a deprecated API, do we think it's worth keeping and investigating further?
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 think we can skip and save effort since it's deprecated.
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.
Sounds good to me!
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.
Works as expected!
@@ -10,18 +10,6 @@ | |||
# - assert: | |||
# that: | |||
# - no_filter.clusters | length >= 1 | |||
# | |||
# - name: List regions with filter on region |
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 think we can skip and save effort since it's deprecated.
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.
Looks much better and works locally.
📝 Description
This pull request migrates the
object_cluster_list
module over to the ListModule base class. Because this module is deprecated, this PR also adds support for deprecating modules using the ListModule and InfoModule base classes.NOTE: object_cluster_info was intentionally not migrated as a part of this PR because its usage deviates too much from InfoModule.
✔️ How to Test
The following test steps assume you have pulled down this PR locally and run
make install
.Integration Testing
tests/integration/targets/object_cluster_list/main.yaml
, remove the debug task and uncomment the rest of the playbook.