Skip to content

Commit

Permalink
Add source name override
Browse files Browse the repository at this point in the history
  • Loading branch information
askarpets committed Mar 5, 2024
1 parent b278d61 commit 3b06090
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@

class DeclarativeSourceAdapter(YamlDeclarativeSource):
def __init__(self, source: AbstractSource) -> None:
super().__init__(path_to_yaml="manifest.yaml")
self._source = source
super().__init__(path_to_yaml="manifest.yaml")
self._set_adapted_methods()

@property
def name(self) -> str:
return self._source.name

def spec(self, logger: Logger) -> ConnectorSpecification:
return self._source.spec(logger)

Expand Down

0 comments on commit 3b06090

Please sign in to comment.