databricks / cli

Databricks CLI
Other
150 stars 56 forks source link

Bundle summary throws an error if job is deleted #1913

Open koopatroopa599 opened 3 days ago

koopatroopa599 commented 3 days ago

Describe the issue

Deleting a job and running databricks bundle summary throws an error:

panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0xa0 pc=0x13c44c4]

Configuration

bundle:
  name: example

include:
  - resources/*/*.yml

dev:
    mode: production
    workspace:
      host: https://xxxx.azuredatabricks.net
      root_path: /.bundle/${bundle.name}/${bundle.target}

Steps to reproduce the behavior

  1. Delete a job .yml file from the /resources/jobs/ folder
  2. Run databricks bundle summary

Expected Behavior

Command outputs the bundle summary

Actual Behavior

Command outputs an error message

OS and CLI version

Operating System: Windows 10 (22H2) CLI version: 0.234.0

Is this a regression?

No

pietern commented 3 days ago

Thanks for reporting!