Skip to content

Commit 8c35d08

Browse files
committed
Cookstyle fixes
Signed-off-by: Lance Albertson <[email protected]>
1 parent 20dbc14 commit 8c35d08

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

metadata.rb

-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@
1818

1919
depends 'runit', '>= 1.7'
2020
depends 'dpkg_autostart'
21-

test/fixtures/cookbooks/jenkins_slave/recipes/create_ssh.rb

+1-7
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
require 'openssl'
2828
require 'net/ssh'
2929
key = OpenSSL::PKey::RSA.new(jenkins_user_data['private_key'])
30-
private_key = key.to_pem
31-
public_key = "#{key.ssh_type} #{[key.to_blob].pack('m0')}"
30+
public_key = "#{key.ssh_type} #{[key.to_blob].pack('m0')}"
3231

3332
user 'jenkins-ssh-key' do
3433
home '/home/jenkins-ssh-key'
@@ -52,11 +51,6 @@
5251
#########################################################################
5352
# CREDENTIALS
5453
#########################################################################
55-
credentials = jenkins_private_key_credentials 'jenkins-ssh-key' do
56-
id '38537014-ec66-49b5-aff2-aed1c19e2989'
57-
private_key private_key
58-
end
59-
6054
jenkins_password_credentials 'jenkins-ssh-password' do
6155
id 'jenkins-ssh-password'
6256
password jenkins_user_data['password_clear']

0 commit comments

Comments
 (0)