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

Fix two issues in verdi computer configure ssh #3636

Merged

Conversation

giovannipizzi
Copy link
Member

The interactive SSH was not accepting an empty
ssh key_filename, while this should be acceptable.
I am also adding a test for the interactive setup of
SSH computers.

Moreover, when reconfiguring a computer, the value
of the cooldown time wasn't resued from the authinfo;
instead, the class default was also reused due to some
hardcoding. Code now behaves correctly and is simplified
avoid duplication in base classes and subclasses.

Fixes #3633 and fixes #3634

@giovannipizzi
Copy link
Member Author

Note for reviewers: there are two commits - the first one does the job, the second is just fixing issues in pylint, so you might want to check them independently.

Note for @yakutovicha who's working on #2207: I'm removing two more files (actually two complex ones) from the pylint exclude list.

Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

Thanks @giovannipizzi just some minor changes

aiida/transports/transport.py Outdated Show resolved Hide resolved
aiida/transports/transport.py Show resolved Hide resolved
The interactive SSH was not accepting an empty
ssh key_filename, while this should be acceptable.
I am also adding a test for the interactive setup of
SSH computers.

Moreover, when reconfiguring a computer, the value
of the cooldown time wasn't resued from the authinfo;
instead, the class default was also reused due to some
hardcoding. Code now behaves correctly and is simplified
avoid duplication in base classes and subclasses.

Fixes aiidateam#3633 and fixes aiidateam#3634
@giovannipizzi giovannipizzi force-pushed the fix_3633_3634_transport_issues branch from 55ee27a to 6068547 Compare December 12, 2019 17:04
@giovannipizzi
Copy link
Member Author

Fixed the two comments by @sphuber in the first of the two commits, then rebased all on top of the most recent develop and force-pushed. This is now ready for (re)review.

@sphuber sphuber merged commit 66b6f6a into aiidateam:develop Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants