Skip to content

Commit 825a37f

Browse files
Add logging for fusion feature flag updates
Add success log messages after updating fusion-rebalances and fusion-fallback-replace feature flags in CapellaUtils to provide confirmation of successful operations. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> Change-Id: Ia9e0f8aeada63cac6a5c582ddf0714841882df85 Reviewed-on: https://review.couchbase.org/c/TAF/+/243523 Tested-by: Build Bot <build@couchbase.com> Reviewed-by: Thuan Nguyen <soccon@gmail.com>
1 parent b2050d7 commit 825a37f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

couchbase_utils/capella_utils/dedicated.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,10 +785,13 @@ def update_fusion_feature_flag(pod, tenant):
785785
format(resp.status_code))
786786
raise Exception("Updating Fusion Feature Flag failed: {}".
787787
format(resp.content))
788+
CapellaUtils.log.info("Updated the fusion-rebalances feature flag successfully")
788789
resp = capella_api.update_global_feature_flag("fusion-fallback-replace", {"value": True})
789790
if resp.status_code != 204:
790791
CapellaUtils.log.critical("Updating Fusion Feature \
791792
Flag fusion-fallback-replace failed for cluster {}".
792793
format(resp.status_code))
793794
raise Exception("Updating Fusion Feature Flag failed: {}".
794795
format(resp.content))
796+
CapellaUtils.log.info("Updated the fusion-fallback-replace feature flag successfully")
797+
return

0 commit comments

Comments
 (0)