Skip to content
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

remove automatic resolver #112

Merged
merged 3 commits into from
Apr 10, 2018
Merged

remove automatic resolver #112

merged 3 commits into from
Apr 10, 2018

Conversation

dbarrosop
Copy link
Contributor

@dbarrosop dbarrosop commented Apr 8, 2018

It was used very inconsistently so let's remove it. If we want it later on we can try to add it via a decorator or something like that.

Solves #107

@coveralls
Copy link

coveralls commented Apr 8, 2018

Pull Request Test Coverage Report for Build 531

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 87.324%

Totals Coverage Status
Change from base Build 523: -0.2%
Covered Lines: 868
Relevant Lines: 994

💛 - Coveralls

Copy link
Collaborator

@ktbyers ktbyers left a comment

Choose a reason for hiding this comment

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

This looks good to me. I just had one question about one of the changes.

assert result
for h, r in result.items():
assert h == r.stdout.strip()
assert h == r[1].stdout.strip()
Copy link
Collaborator

@ktbyers ktbyers Apr 9, 2018

Choose a reason for hiding this comment

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

This seemed a bit strange...why the addition of the [1] i.e. why did it go from r.stdout.strip() to r[1].stdout.strip().

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay, I understand this behavior now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just for reference; the reason is because instead of calling a task directly we are calling now a grouped task. Grouped tasks return a dict of results (key is host) with a list of results of which the first element is the result for the whole group.

@dbarrosop dbarrosop merged commit bba25ed into develop Apr 10, 2018
@dbarrosop dbarrosop deleted the dbarroso/remove_resolver branch May 3, 2018 14:10
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.

None yet

3 participants