Skip to content

Commit

Permalink
log the old credentials for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jul 23, 2014
1 parent e3b87de commit da6ccd4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/registration/sw_mgmt.rb
Expand Up @@ -271,12 +271,17 @@ def self.copy_old_credentials(source_dir)
log.info "Copying the old NCC credentials from previous installation"
log.info "Copying #{ncc_file} to #{new_file}"
::FileUtils.cp(ncc_file, new_file)

credentials = SUSE::Connect::Credentials.read(new_file)
log.info "Using previous NCC credentials: #{credentials.inspect}"
end

if File.exist?(scc_file)
log.info "Copying the old SCC credentials from previous installation"
log.info "Copying #{scc_file} to #{new_file}"
::FileUtils.cp(scc_file, new_file)
credentials = SUSE::Connect::Credentials.read(new_file)
log.info "Using previous SCC credentials: #{credentials.inspect}"
end
end

Expand Down

0 comments on commit da6ccd4

Please sign in to comment.