Skip to content

Commit

Permalink
fix(jans-cli-tui): schema retreiveal with whitespace in path (#5601)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar authored Jul 24, 2023
1 parent 8be0aa2 commit 9a83244
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jans-cli-tui/cli_tui/cli/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,10 @@ def help_for(self, op_name):
if schema_path:
print()
scim_arg = ' -scim' if '-scim' in sys.argv else ''
print("To get sample schema type {0}{3} --schema <schma>, for example {0}{3} --schema {2}{1}".format(sys.argv[0], os.path.basename(schema_path), mode_suffix, scim_arg))
schema_path_string = '{}{}'.format(mode_suffix, os.path.basename(schema_path))
if ' ' in schema_path_string:
schema_path_string = '\"{}\"'.format(schema_path_string)
print("To get sample schema type {0}{2} --schema <schma>, for example {0}{2} --schema {1}".format(sys.argv[0], schema_path_string, scim_arg))

def render_json_entry(self, val):
if isinstance(val, str) and val.startswith('_file '):
Expand Down

0 comments on commit 9a83244

Please sign in to comment.