-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise an error when double underscore variable reference is used
- Loading branch information
1 parent
34a37cf
commit f0e8b7e
Showing
6 changed files
with
68 additions
and
11 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
acceptance/bundle/variables/double_underscore/databricks.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
bundle: | ||
name: double_underscore | ||
|
||
variables: | ||
double__underscore: | ||
description: "This is a variable with a double underscore" | ||
default: "default" | ||
|
||
resources: | ||
jobs: | ||
test_job: | ||
name: "test" | ||
tasks: | ||
- task_key: "test ${var.double__underscore}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
>>> $CLI bundle validate | ||
Error: incorrect variable name: [${var.double__underscore}] | ||
|
||
Name: double_underscore | ||
Target: default | ||
Workspace: | ||
User: $USERNAME | ||
Path: /Workspace/Users/$USERNAME/.bundle/double_underscore/default | ||
|
||
Found 1 error | ||
|
||
Exit code: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
trace $CLI bundle validate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters