-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packaging: Use
cloud
extra to install relevant packages
I.e., don't always install the `croud` package.
- Loading branch information
Showing
7 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
|
||
## Unreleased | ||
- Packaging: Use `cloud` extra to install relevant packages | ||
|
||
|
||
## 2024/12/18 v0.0.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
from cratedb_toolkit.cluster.croud import CloudCluster | ||
from cratedb_toolkit.model import ClusterInformation | ||
|
||
|
||
def get_cluster_info(cluster_id: str) -> ClusterInformation: | ||
cluster_info = ClusterInformation() | ||
cc = CloudCluster(cluster_id=cluster_id) | ||
cluster_info.cloud = cc.get_info() | ||
try: | ||
from cratedb_toolkit.cluster.croud import CloudCluster | ||
|
||
cc = CloudCluster(cluster_id=cluster_id) | ||
cluster_info.cloud = cc.get_info() | ||
except ImportError: | ||
pass | ||
return cluster_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters