Skip to content

Conversation

pmilano1
Copy link
Member

No description provided.

Copy link
Member

@leitzler leitzler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question, otherwise LGTM

num_unmatched_criteria -= 1
if match_all and num_unmatched_criteria == 0:
object_ids.append(instance['id'])
elif not match_all and num_criteria > num_unmatched_criteria >= 1:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the intent of num_criteria > num_unmatched_criteria >= 1 to return False when we match all criteria? (i.e. if we have match_all = False, num_criteria = 5 and matches them all num_unmatched_criteria = 0) ?

My impression was that it would be enough to match a single criteria to append when match_all = False, i.e. drop the >= 1:

elif not match_all and num_criteria > num_unmatched_criteria:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just ripped all of that out, since we implemented filtering in the resolver now. Take another look. Way simpler.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, indeed, nice!

"""
try:
query_name = "compute_vmware_vsphere"
query_name = "compute_vmware_vsphere_list"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This query file is missing, forgot to commit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants