Change fact name for env vars

This commit is contained in:
Luc Perkins 2024-05-27 17:08:41 -03:00
parent 56552edb56
commit a89604e21e
No known key found for this signature in database
GPG Key ID: 16DB1108FB591835
3 changed files with 5 additions and 5 deletions

4
dist/index.js generated vendored
View File

@ -95165,7 +95165,7 @@ async function flakeHubLogin(netrc) {
var ENV_DAEMON_DIR = "MAGIC_NIX_CACHE_DAEMONDIR";
var FACT_AUTHENTICATED_ENV = "authenticated_env";
var FACT_ENV_VARS_PRESENT = "required_env_vars_present";
var FACT_DIFF_STORE_ENABLED = "diff_store";
var FACT_NOOP_MODE = "noop_mode";
var STATE_DAEMONDIR = "MAGIC_NIX_CACHE_DAEMONDIR";
@ -95259,7 +95259,7 @@ var MagicNixCacheAction = class extends DetSysAction {
);
}
}
this.addFact(FACT_AUTHENTICATED_ENV, !anyMissing);
this.addFact(FACT_ENV_VARS_PRESENT, !anyMissing);
if (anyMissing) {
return;
}

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -14,7 +14,7 @@ import { inspect } from "node:util";
// twice.
const ENV_DAEMON_DIR = "MAGIC_NIX_CACHE_DAEMONDIR";
const FACT_AUTHENTICATED_ENV = "authenticated_env";
const FACT_ENV_VARS_PRESENT = "required_env_vars_present";
const FACT_DIFF_STORE_ENABLED = "diff_store";
const FACT_NOOP_MODE = "noop_mode";
@ -137,7 +137,7 @@ class MagicNixCacheAction extends DetSysAction {
}
}
this.addFact(FACT_AUTHENTICATED_ENV, !anyMissing);
this.addFact(FACT_ENV_VARS_PRESENT, !anyMissing);
if (anyMissing) {
return;
}