You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@deg-debian12:~# sshd -V
OpenSSH_9.2, OpenSSL 3.0.9 30 May 2023
But this version syntax prevents ssh_server_version_major fact to be created.
In lib/facter/ssh_server_version.rb we changed the whole "case version" block from
case version
when %r{([0-9]+)\.([0-9]+)\.([0-9]+p[0-9]+)}
# 6.6.1p1 style formatting
version.gsub(%r{([0-9]+)\.([0-9]+)\.([0-9]+p[0-9]+)}, '\1')
when %r{^([0-9]+)\.([0-9]+p[0-9]+)}
# 7.2p2 style formatting
version.gsub(%r{^([0-9]+)\.([0-9]+p[0-9]+)}, '\1')
end
to
version.gsub(%r{^([0-9]+)\..*$}, '\1')
This regex seems easier to understand and doesn't need any "when" statements.
Maybe we overlooked something here so please have a look if you also think it's better written this way.
Thanks and br
Mike
The text was updated successfully, but these errors were encountered:
Hello,
we use Debian 12 with OpenSSH 9.2
But this version syntax prevents ssh_server_version_major fact to be created.
In lib/facter/ssh_server_version.rb we changed the whole "case version" block from
to
This regex seems easier to understand and doesn't need any "when" statements.
Maybe we overlooked something here so please have a look if you also think it's better written this way.
Thanks and br
Mike
The text was updated successfully, but these errors were encountered: