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 for install ssh key task #8283

Merged
merged 1 commit into from
Sep 20, 2018
Merged

Conversation

lkillgore
Copy link
Contributor

This is a narrow fix that will only happen for private agents. If they install an ssh key on a machine that is already running ssh-agent, then the uninstall would only work if 'ssh-add' was in the path.

Copy link
Member

@jpricket jpricket left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Contributor

@hashtagchris hashtagchris left a comment

Choose a reason for hiding this comment

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

Looks good. Looks like all the uses of ssh-add are consistent now.

@keithrob
Copy link
Contributor

keithrob commented Sep 10, 2018

Please hold on this until my PR, #8274, gets through.

@lkillgore lkillgore closed this Sep 13, 2018
@lkillgore lkillgore reopened this Sep 13, 2018
@@ -52,4 +52,19 @@ describe('InstallSSHKey Suite', function () {

done();
});

it('SSH key uninstalled from running agent', (done: MochaDone) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

These need to be function () for the correct this context to be captured.

Also, you don't need to pass done. That's just for testing async callbacks.

@lkillgore
Copy link
Contributor Author

Please hold on this until my PR, #8274, gets through.

Hi @keithrob, unfortunately, I have to push through this change now for other reasons as now it's blocking my team.

@lkillgore lkillgore merged commit 623f2c1 into master Sep 20, 2018
@lkillgore lkillgore deleted the users/lukillgo/installsshkey-fix branch September 20, 2018 18:23
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.

6 participants