canonical / data-platform-libs

A collection of charm libraries curated by the Data Platform Team
https://charmhub.io/data-platform-libs
Apache License 2.0
10 stars 9 forks source link

is_resource_created should return False where there is no relation #42

Closed deusebio closed 1 year ago

deusebio commented 1 year ago

Bug Description

When there are no relations, is_resource_created returns True since

all([]) == True

The correct UX that I would feel more intuitive is:

To Reproduce

N/A

Environment

N/A

Relevant log output

N/A

Additional context

No response

carlcsaposs-canonical commented 1 year ago

Fixed in #44