Skip to content

Commit

Permalink
fix: consume schema.json from ucc ui
Browse files Browse the repository at this point in the history
  • Loading branch information
harshpatel-crest committed May 30, 2021
1 parent ceca1d9 commit 6069ce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
name: Get UI
command: |
./get-ucc-ui.sh
mkdir -p splunk_add_on_ucc_framework/package || true
tar -zxf splunk-ucc-ui.tgz -C splunk_add_on_ucc_framework/package
# Puts package and schema subdirs
tar -zxf splunk-ucc-ui.tgz -C splunk_add_on_ucc_framework/
- run:
name: Build
command: |
Expand Down
2 changes: 1 addition & 1 deletion splunk_add_on_ucc_framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def validate_config_against_schema(config: dict):
Validates config against JSON schema.
Raises jsonschema.ValidationError if config is not valid.
"""
schema_path = os.path.join(sourcedir, "UCC-UI-lib", "schema", "schema.json")
schema_path = os.path.join(sourcedir, "schema", "schema.json")
with open(schema_path, "r") as f_schema:
schema_raw = f_schema.read()
schema = json.loads(schema_raw)
Expand Down

0 comments on commit 6069ce2

Please sign in to comment.