-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add resource_directory #690
Conversation
Codecov Report
@@ Coverage Diff @@
## master #690 +/- ##
==========================================
+ Coverage 83.41% 83.49% +0.08%
==========================================
Files 86 87 +1
Lines 7939 7979 +40
==========================================
+ Hits 6622 6662 +40
Misses 839 839
Partials 478 478
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small adjustments required
notebooksAPI := NewNotebooksAPI(ctx, c) | ||
path := d.Get("path").(string) | ||
if err := notebooksAPI.Mkdirs(path); err != nil { | ||
// TODO: handle RESOURCE_ALREADY_EXISTS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For directory you probably have to remove this todo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @nfx . Just to be sure, are you ok with the |
Will add documentation later as well. |
85b8953
to
e57f60f
Compare
directory_path = "/Production/ETL" | ||
depends_on = [databricks_notebook.this] | ||
directory_path = databricks_directory.this.path | ||
depends_on = [databricks_directory.this] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends_on is not needed as long as there's an explicit dependency.
Issue: #672