You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NSC_SCHEMA does not behave like --schema (local path ignored, unreachable URL silently falls back) #192
NSC_SCHEMA never reaches the schema_override path that --schema uses (nsc/cli/globals.py only passes state.overrides.schema_override). Instead, resolve_profile (nsc/cli/runtime.py) runs it through _url_only and uses it as profile.schema_url. As a result:
Local path:NSC_SCHEMA=./schema.json nsc dcim sites list ignores the file and fetches from {NSC_URL}/api/schema/.
Expected:NSC_SCHEMA behaves exactly like --schema, with the flag winning when both are set: it accepts a path or URL, never consults the TTL or fallback, and a load failure exits 3 with Error: cannot load schema from <source>: <reason>.
Activity
thomaschristory commentedon Oct 23, 2026
Claiming: route NSC_SCHEMA through the --schema override path (flag wins). Branch: fix/nsc-schema-env-override.
thomaschristory commentedon Oct 23, 2026
PR opened: #193
fix(cli): NSC_SCHEMA is the env-var form of --schema (#192) (#193)
thomaschristory commentedon Oct 23, 2026
Fixed by #193 (merged, 625bf7b). Shipping in v1.8.5.