diff --git a/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/out.destroy.direct.txt b/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/out.destroy.direct.txt index e7fbe83609..26b515960b 100644 --- a/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/out.destroy.direct.txt +++ b/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/out.destroy.direct.txt @@ -1,9 +1,12 @@ >>> errcode as-test-sp [CLI] bundle destroy --auto-approve Warn: reading resources.jobs.foo.permissions id="/jobs/[NUMID]": [UUID] does not have Manage permissions on Job with ID: ElasticJobId([NUMID]). Please contact the owner or an administrator for access. -Error: cannot plan resources.jobs.foo: dependency failed: resources.jobs.foo.permissions +Warn: reading resources.jobs.foo id="[NUMID]": User [UUID] does not have View or Admin or Manage Run or Owner permissions on job [NUMID] +The following resources will be deleted: + delete resources.jobs.foo -Error: planning failed +All files and directories at the following location will be deleted: /Workspace/Users/[UUID]/.bundle/test-bundle-[UNIQUE_NAME]/default - -Exit code: 1 +Warn: Ignoring permission error when deleting resources.jobs.foo id=[NUMID]: User [UUID] does not have Admin or Owner permissions on job [NUMID] +Deleting files... +Destroy complete! diff --git a/bundle/direct/bundle_plan.go b/bundle/direct/bundle_plan.go index 296b7d9867..b3d0674537 100644 --- a/bundle/direct/bundle_plan.go +++ b/bundle/direct/bundle_plan.go @@ -180,7 +180,7 @@ func (b *DeploymentBundle) CalculatePlan(ctx context.Context, client *databricks plan.RemoveEntry(resourceKey) } else { log.Warnf(ctx, "reading %s id=%q: %s", resourceKey, dbentry.ID, err) - return false + // This is not an error during deletion, so don't return false here } }