Skip to content

Commit 5e91770

Browse files
authored
update cli config (#277)
1 parent 02d1505 commit 5e91770

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

genesis_core/cmd/bootstrap.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,21 @@ def _install_core_manifest(spec: dict[str, tp.Any], core_element_name: str = "co
245245
with open(os.path.join(GCTL_CFG_DIR, "genesisctl.yaml"), "w") as f:
246246
yaml.safe_dump(
247247
{
248-
"endpoint": CONF.core_endpoint,
249-
"user": CONF.core_user,
250-
"password": admin_pass,
248+
"schema_version": 1,
249+
"realms": {
250+
"default-realm": {
251+
"endpoint": CONF.core_endpoint,
252+
"check_updates": True,
253+
"contexts": {
254+
"default-context": {
255+
"user": CONF.core_user,
256+
"password": admin_pass,
257+
},
258+
"current-context": "default-context",
259+
},
260+
}
261+
},
262+
"current-realm": "default-realm",
251263
},
252264
f,
253265
)

0 commit comments

Comments
 (0)