Skip to content

Commit 0eae033

Browse files
authored
Avoid deactivate/activate when feature flag for Aqua is enabled.
1 parent 4a6bb03 commit 0eae033

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ads/aqua/extension/common_handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from ads.aqua.extension.base_handler import AquaAPIhandler
1313
from ads.aqua.utils import known_realm
1414

15-
1615
class ADSVersionHandler(AquaAPIhandler):
1716
"""The handler to get the current version of the ADS."""
1817

@@ -39,7 +38,7 @@ def get(self):
3938
AquaResourceAccessError: raised when aqua is not accessible in the given session/region.
4039
4140
"""
42-
if ODSC_MODEL_COMPARTMENT_OCID:
41+
if ODSC_MODEL_COMPARTMENT_OCID or fetch_service_compartment(): #TODO replace this with method that does not raise exception
4342
return self.finish(dict(status="ok"))
4443
elif known_realm():
4544
return self.finish(dict(status="compatible"))

0 commit comments

Comments
 (0)