Skip to content

Commit

Permalink
storage: Only write non-null Anaconda configs to console
Browse files Browse the repository at this point in the history
  • Loading branch information
mvollmer authored and martinpitt committed Jan 3, 2024
1 parent 50f5d74 commit 7b3d361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storaged/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,13 +743,13 @@ function init_model(callback) {

try {
client.anaconda = JSON.parse(window.localStorage.getItem("cockpit_anaconda"));
if (client.anaconda)
console.log("ANACONDA", client.anaconda);
} catch {
console.warn("Can't parse cockpit_anaconda configuration as JSON");
client.anaconda = null;
}

console.log("ANACONDA", client.anaconda);

pull_time().then(() => {
read_os_release().then(os_release => {
client.os_release = os_release;
Expand Down

0 comments on commit 7b3d361

Please sign in to comment.