File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed
lib/puppet/provider/apt_key Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -128,19 +128,7 @@ Security/Open:
128128 Exclude :
129129 - ' lib/puppet/provider/apt_key/apt_key.rb'
130130
131- # Offense count: 1
132- # This cop supports unsafe autocorrection (--autocorrect-all).
133- Style/GlobalStdStream :
134- Exclude :
135- - ' tasks/init.rb'
136-
137131# Offense count: 1
138132Style/MixinUsage :
139133 Exclude :
140134 - ' spec/spec_helper.rb'
141-
142- # Offense count: 2
143- # This cop supports unsafe autocorrection (--autocorrect-all).
144- Style/SlicingWithRange :
145- Exclude :
146- - ' lib/puppet/provider/apt_key/apt_key.rb'
Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ def self.key_line_hash(pub_line, fpr_line)
9292 fingerprint = fpr_split . last
9393 return_hash = {
9494 key_fingerprint : fingerprint ,
95- key_long : fingerprint [ -16 ..- 1 ] , # last 16 characters of fingerprint
96- key_short : fingerprint [ -8 ..- 1 ] , # last 8 characters of fingerprint
95+ key_long : fingerprint [ -16 ..] , # last 16 characters of fingerprint
96+ key_short : fingerprint [ -8 ..] , # last 8 characters of fingerprint
9797 key_size : pub_split [ 2 ] ,
9898 key_type : nil ,
9999 key_created : Time . at ( pub_split [ 5 ] . to_i ) ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def apt_get(action)
2121 { status : stdout . strip }
2222end
2323
24- params = JSON . parse ( STDIN . read )
24+ params = JSON . parse ( $stdin . read )
2525action = params [ 'action' ]
2626
2727begin
You can’t perform that action at this time.
0 commit comments