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

Custom Capabilities in Candore #19

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

jyejare
Copy link
Member

@jyejare jyejare commented Jun 18, 2024

Adding the ability for custom validations like RPMs in this PR.

@jyejare jyejare force-pushed the custom_variations branch 2 times, most recently from bd93fcd to ab1712a Compare June 18, 2024 09:07
from urllib.parse import urlparse


class SSHClient:
Copy link
Member

Choose a reason for hiding this comment

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

I think this class can be removed since it performs the same auth checks and validations the Connection class will already do.
https://github.com/JacobCallahan/Hussh/blob/master/src/connection.rs#L259-L282
So you can pass along values (or None) for everything and it will figure it out.

Also, Hussh supports agent-based auth so technically a user with that setup doesn't have to provide a key or password to establish a connection.

Try just having the Session class create the Connection directly.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, removed the SSHClient class now as it's not needed. Keeping the SSH key option though to pass it down if needed.

@jyejare jyejare force-pushed the custom_variations branch from ab1712a to 6133eb6 Compare June 24, 2024 12:29
@jyejare jyejare force-pushed the custom_variations branch from 6133eb6 to cb25b83 Compare June 24, 2024 15:04
@JacobCallahan JacobCallahan merged commit 4a783b9 into SatelliteQE:master Jun 24, 2024
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.

2 participants