Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.

(FACT-2330) Add ssh fact for Windows OpenSSH feature#424

Merged
Filipovici-Andrei merged 1 commit intomasterfrom
FACT-2330
Apr 15, 2020
Merged

(FACT-2330) Add ssh fact for Windows OpenSSH feature#424
Filipovici-Andrei merged 1 commit intomasterfrom
FACT-2330

Conversation

@oanatmaria
Copy link
Copy Markdown
Contributor

No description provided.

@oanatmaria oanatmaria requested review from a team March 31, 2020 16:06
@oanatmaria oanatmaria force-pushed the FACT-2330 branch 3 times, most recently from fb169e7 to 865fdcf Compare April 2, 2020 14:42
Comment thread lib/resolvers/ssh_resolver.rb Outdated
Comment thread lib/resolvers/utils/ssh_helper.rb Outdated
Comment thread lib/framework/core/file_loader.rb Outdated
Comment on lines +34 to +35
require "#{ROOT_DIR}/lib/resolvers/utils/ssh.rb"
require "#{ROOT_DIR}/lib/resolvers/utils/ssh_helper.rb"
Copy link
Copy Markdown

@gimmyxd gimmyxd Apr 8, 2020

Choose a reason for hiding this comment

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

Why there is a util/shh and a util/ssh_helper?
This is a bit confusing, alongside the fact that there are also other utils in different locations with different purposes. Could this 2 ssh be a single source?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

util/shh is an object that contains structured information about a ssh key. util/ssh_helper creates an object of type util/shh after creating a fingerprint and extracting other information

Comment thread lib/facts/windows/ssh.rb Outdated
@oanatmaria oanatmaria force-pushed the FACT-2330 branch 2 times, most recently from 7b73a76 to 8aad8c3 Compare April 8, 2020 12:29
Comment thread lib/resolvers/utils/ssh_helper.rb Outdated
Comment thread spec/facter/facts/windows/ssh_spec.rb
Comment thread spec/facter/resolvers/windows/ssh_spec.rb
@oanatmaria oanatmaria force-pushed the FACT-2330 branch 4 times, most recently from 24e547e to 126eca8 Compare April 15, 2020 07:10
Comment thread lib/resolvers/windows/ssh.rb Outdated
@Filipovici-Andrei Filipovici-Andrei merged commit f1fa328 into master Apr 15, 2020
@Filipovici-Andrei Filipovici-Andrei deleted the FACT-2330 branch April 15, 2020 08:47
Comment thread lib/facts/windows/ssh.rb

private

def create_ssh_fact(ssh)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Isn't this duplicated in each ssh fact? is there a ticket to solve the duplications?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants