Skip to content

Commit 5be32d9

Browse files
committed
clean up
1 parent 3970144 commit 5be32d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/bundle/deployment/migrate.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,13 @@ To start using direct engine, deploy with DATABRICKS_BUNDLE_ENGINE=direct env va
222222
if etag == "" {
223223
continue
224224
}
225-
// Get the cached StructVar created during planning
226225
sv, ok := deploymentBundle.StructVarCache.Load(key)
227226
if !ok {
228-
return fmt.Errorf("failed to get cached state for %s", key)
227+
return fmt.Errorf("failed to read state for %q", key)
229228
}
230229
err := structaccess.Set(sv.Value, structpath.NewStringKey(nil, "etag"), etag)
231230
if err != nil {
232-
return fmt.Errorf("failed to set etag on %s: %w", key, err)
231+
return fmt.Errorf("failed to set etag on %q: %w", key, err)
233232
}
234233
}
235234

0 commit comments

Comments
 (0)