Skip to content

Fail condition in restore, related to failed pre-checks #295

@awilliams-scottdata

Description

@awilliams-scottdata

In grafana_backup/restore.py:

(status, json_resp, dashboard_uid_support, datasource_uid_support,
     paging_support, contact_point_support) = api_checks(settings)

I am running the restore command and getting a ValueError: not enough values to unpack (expected 6, got 5)

I did some digging and found that if the api_checks fails it returns (status, json_resp, None, None, None) which is 5 values where the restore is expecting 6 values.

Potential solutions include:

  1. Increasing the number of None returned, may break other functions
  2. include error checking in restore.py that catches unpacking errors and returns the status and json_resp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions