-
Notifications
You must be signed in to change notification settings - Fork 181
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
fixes for verdi computer configure ssh
#1933
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1933 +/- ##
===========================================
- Coverage 67.28% 67.26% -0.03%
===========================================
Files 320 320
Lines 33178 33180 +2
===========================================
- Hits 22325 22319 -6
- Misses 10853 10861 +8
Continue to review full report at Codecov.
|
cd87ba2
to
6c03b0a
Compare
@@ -483,7 +485,7 @@ def open(self): | |||
# Open a SSHClient | |||
connection_arguments = self._connect_args | |||
proxystring = connection_arguments.pop('proxy_command', None) | |||
if proxystring is not None: | |||
if proxystring: |
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.
This did not work for me. A change to if proxystring != ''
did. However, we should really set it to None
if it is not specified.
@@ -483,7 +485,7 @@ def open(self): | |||
# Open a SSHClient | |||
connection_arguments = self._connect_args | |||
proxystring = connection_arguments.pop('proxy_command', None) |
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.
Also, update this to e.g. proxystring = connection_arguments.pop('proxy_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.
But we should really use None
. When I was fixing this locally I did not manage to do that due to the fact that we have to leave options for the user that has previously defined a string to set it to None
. Since the cli does not suggest the string in the entry field, one cannot delete it and then set None
internally. Also, it is not so user friendly to set None
in the cli. So maybe we should just stick with an empty string.
These problems should have been fixed in #1974. Thanks @dev-zero for the suggestions that @waychal could use for the fix. @espenfl you said that |
No description provided.