-
Notifications
You must be signed in to change notification settings - Fork 17
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
ssh client copy_file bidirectional instead of always assuming local to remote copy #42
Conversation
ebcad1d
to
1412ccf
Compare
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 good.
I have one question about the logging call.
dcos_test_utils/ssh_client.py
Outdated
cmd = ['scp'] + self.opt_list + ['-P', str(self.port)] + copy_command | ||
log.debug('Copying {} to {}'.format(src, remote_full_path)) | ||
log.debug('Copying {} to {}'.format(*copy_command)) |
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.
Does this log statement work if copy_command
includes the -r
? That would be more than 2 arguments?
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.
Ahh good catch, that wouldn't work. It doesn't throw an exception but it would log -r to src
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.
Just needs a fix for the log statement that @colin-msphere pointed out and then we should be able to merge this
Not sure why the tests aren't reporting. I triggered them manually. ✅ Tox https://teamcity.mesosphere.io/viewLog.html?buildId=1021388&tab=buildResultsDiv&buildTypeId=DcosIo_DcosTestUtils_ToxIntegrationTestEnterprise |
Oooo that's what the 'update branch' button does. Updates with master. |
It still defaults to assuming local->remote, so previous uses of it shouldn't be affected