ceph / ceph/ceph-iscsi

Minor: gwcli: AttributeError: 'Settings' object has no attribute 'api_url'

Open
#233 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
68
Forks
58
PR merge metrics
No merged PRs in 30d

Description

When the API is down, gwcli attempts to report the error using a non-existent attribute `settings.config.api_endpoint`: https://github.com/ceph/ceph-iscsi/blob/master/gwcli.py#L108

Contributor guide

No contributing guide indexed for this repository

Research direction

Open gwcli.py around line 108 and inspect the error-reporting path used when the API is down. Reproduce that failure and verify that the CLI reports the API error without raising an AttributeError for the missing settings attribute.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.