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

multitarget fixes #107

Merged
merged 3 commits into from
May 8, 2018
Merged

multitarget fixes #107

merged 3 commits into from
May 8, 2018

Conversation

marcparadise
Copy link
Member

Fixes for issues discovered in final vetting of multitarget.

  • Fix incorrect range ordering for numbers-as-ASCII
  • ensure that that fully specified hosts (eg ssh://user:password@blah work
  • correct wrong var name in a previously unused code path

The individual commit messages have some more details.

@marcparadise marcparadise requested a review from a team May 4, 2018 17:58
jonsmorrow
jonsmorrow previously approved these changes May 4, 2018
Fully specified host (eg ssh://user:pass@host) was failing
to parse ranges because '@' was not recognized as a valid character.

Also corrected an issue in previously unhit error_printer logic
where we were using the wrong variable name.

Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
A given range is automatically sorted so that the lower value comes
first, but we didn't correctly handle ASCII sorts of integers-as-strings
resulting in a ruby Range that could not be iterated and an incorrect
error message (CHEFRANGE002) as a side effect.

Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
@marcparadise
Copy link
Member Author

Review dismissed with rebase. However a little more work is needed - we will still fail to parse in the likely scenario of a fully qualified host w/ a password containing special characters. I'll push up an additional commit; marking this WIP/no-merge for now.

@marcparadise
Copy link
Member Author

The addiitonal special character changes are coupled to train changes; I will make those as a separate PR. This one is good to go.

@tyler-ball tyler-ball merged commit 82dea7f into master May 8, 2018
@chef-ci chef-ci deleted the mp/multitarget-fixes branch May 8, 2018 17:20
Copy link
Contributor

@jonsmorrow jonsmorrow left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants