File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
cookbooks/boxcutter_sonatype/recipes Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 225225
226226 put_res = http_request . call ( anonymous_uri , put_req )
227227 unless [ 200 , 204 ] . include? ( put_res . code . to_i )
228- fail "Nexus: failed to set anonymous=#{ desired_enabled } : HTTP #{ put_res . code } #{ put_res . message } #{ put_res . body } "
228+ fail "Nexus: failed to set anonymous=#{ desired_enabled } : " \
229+ "HTTP #{ put_res . code } #{ put_res . message } #{ put_res . body } "
229230 end
230231
231232 # Re-check to confirm it actually changed
286287 # managed password doesn't work; bootstrap using admin.password if available
287288 pw_file = admin_pw_candidates . find { |p | ::File . exist? ( p ) }
288289 if pw_file . nil?
289- fail "Nexus: managed admin password rejected and no bootstrap admin.password found in: #{ admin_pw_candidates . join ( ', ' ) } "
290+ fail "Nexus: managed admin password rejected and no bootstrap " \
291+ "admin.password found in: #{ admin_pw_candidates . join ( ', ' ) } "
290292 end
291293
292294 bootstrap_pw = ::File . read ( pw_file ) . strip
296298 begin
297299 ensure_anonymous_setting . call ( bootstrap_pw , desired_anonymous )
298300 rescue => e
299- Chef ::Log . info ( "Nexus: could not set anonymous with bootstrap password (#{ e . class } : #{ e . message } ); continuing bootstrap..." )
301+ Chef ::Log . info ( "Nexus: could not set anonymous with bootstrap " \
302+ "password (#{ e . class } : #{ e . message } ); continuing bootstrap..." )
300303 end
301304
302305 # Now change admin password to managed password
317320 end
318321end
319322
320- boxcutter_sonatype_nexus_repository 'configure'
323+ boxcutter_sonatype_nexus_repository 'configure'
You can’t perform that action at this time.
0 commit comments