Skip to content

Commit

Permalink
Dev: ui_configure: Get schema statically when cluster is not running
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Feb 17, 2025
1 parent 6550bba commit 9a3c42c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crmsh/ui_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,8 @@ def do_upgrade(self, context, force=None):
@command.completers(schema_completer)
def do_schema(self, context, schema_st=None):
"usage: schema [<schema>]"
if not schema_st:
utils.load_cib_file_env()
if not schema_st and cib_factory.is_cib_sane():
print(cib_factory.get_schema())
return True
return cib_factory.change_schema(schema_st)
Expand Down

0 comments on commit 9a3c42c

Please sign in to comment.