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

Proposed update to resolve saltstack/salt#52538 #52641

Closed
wants to merge 369 commits into from
Closed

Proposed update to resolve saltstack/salt#52538 #52641

wants to merge 369 commits into from

Conversation

que5o
Copy link
Contributor

@que5o que5o commented Apr 19, 2019

Simply remove reading the target csv file in binary format

What does this PR do?

resolves issue with csvpillar.py attempting to read csv file in binary format instead of text

What issues does this PR fix or reference?

#52538

Previous Behavior

Reads target csv file from disk in binary format

New Behavior

Reads target csv file in text format

Tests written?

No

Commits signed with GPG?

No

chotea and others added 30 commits April 10, 2019 09:29
Since refresh_db is a costly operation we should have the option of not calling that

Signed-off-by: Cristian Hotea <cristian.hotea@ni.com>
Pygit2 version 0.26.2 added support for pruning when fetching.
In this way Pygit2 provider will no longer need to leverage
git commanand line utility for pruning the remote.

Signed-off-by: Cristian Hotea <cristian.hotea@ni.com>
Pkgrepo state module is using a named argument when calling pkg.del_repo.
Change the name of the argument from 'alias' to 'repo' and update all
other functions to be consistent on naming.

Signed-off-by: Cristian Hotea <cristian.hotea@ni.com>
python exposes an nt.environ for case insensitive environment behavior
that is native to windows; so it makes sense to use this instead of
os.environ to avoid enexpected behavior and failure.

further detail: https://bugs.python.org/issue28824
Simplify IPCClient and prevent corrupt messages
…ents

Use uncommon item in mine delete test
2018.3 backport #52472 modules.cmdmod: handle windows environ better
When the source is procedurally generated (e.g. from the result of a
remote execution function call), and that source ends up being an empty
string or some other invalid value, the call to `file.source_list` will
return a path of `None` which will cause a `TypeError` later on when we
try to run a urlparse on it.
@que5o que5o requested a review from a team as a code owner April 19, 2019 21:17
@waynew
Copy link
Contributor

waynew commented Apr 22, 2019

Hi @que5o thanks for the PR!

Pretty sure this looks good - is this issue just in develop, or does it also exist against 2018? If so, if you rebase & retarget your PR against 2018.3, we will merge it forward to 2019.2 & develop.

Also, would it be possible to write some tests for this?

@que5o
Copy link
Contributor Author

que5o commented Apr 23, 2019

Yes looks like this exists in 2018.3 branch. I'll look into how to re-base the PR. I'll also look into adding a some unit testing

Simply remove reading the target csv file in binary format
@que5o
Copy link
Contributor Author

que5o commented Apr 23, 2019

I f****d this all up. Since it's a one letter change, I'm going to redo the pull request from scratch. The original PR gets to live on to display my shame.

@que5o que5o closed this Apr 23, 2019
@que5o que5o deleted the patch-1 branch April 23, 2019 22:06
@waynew
Copy link
Contributor

waynew commented Apr 23, 2019

No harm no foul ;)

When I first started with Git I don't even know what I did to completely hork up a repo I was working in. Someone walked me through, step by step, to rewrite my history and make things better.

@que5o
Copy link
Contributor Author

que5o commented Apr 29, 2019

I have submitted a new PR to replace this mess:
#52747

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.