Skip to content

Commit

Permalink
fix rubocop complains
Browse files Browse the repository at this point in the history
  • Loading branch information
whitew1nd committed Nov 23, 2015
1 parent 6a572ee commit b72ec3f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/chef/knife/openvpn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def generate_cert_and_key(subject, cert_config, selfsigned = false, ca_cert = ni
end

def issue_crl(revoke_info, serial, lastup, nextup, extensions,
issuer, issuer_key, digest)
issuer, issuer_key, digest)
crl = OpenSSL::X509::CRL.new
crl.issuer = issuer.subject
crl.version = 1
Expand Down Expand Up @@ -374,11 +374,9 @@ def export_user(server_name, user_name)
user_item = load_databag_item(databag_name, user_name)
user_cert, _user_key = load_cert_and_key user_item['cert'], user_item['key']
tmpdir = Dir.mktmpdir
#ui.msg "created tmpdir: #{tmpdir}"
begin
user_dir = "#{tmpdir}/#{user_name}-vpn"
Dir.mkdir user_dir
#ui.msg "created userdir: #{user_dir}"
export_file "#{user_dir}/ca.crt", ca_cert.to_pem
export_file "#{user_dir}/#{user_name}.crt", user_cert.to_pem
export_file "#{user_dir}/#{user_name}.key", user_item['key'].to_s
Expand Down

0 comments on commit b72ec3f

Please sign in to comment.