Skip to content

Commit 7ca5aab

Browse files
add import
1 parent 0eae033 commit 7ca5aab

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ads/aqua/extension/common_handler.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
from ads.aqua.decorator import handle_exceptions
1111
from ads.aqua.exception import AquaResourceAccessError
1212
from ads.aqua.extension.base_handler import AquaAPIhandler
13-
from ads.aqua.utils import known_realm
13+
from ads.aqua.utils import known_realm, fetch_service_compartment
14+
1415

1516
class ADSVersionHandler(AquaAPIhandler):
1617
"""The handler to get the current version of the ADS."""
@@ -38,7 +39,9 @@ def get(self):
3839
AquaResourceAccessError: raised when aqua is not accessible in the given session/region.
3940
4041
"""
41-
if ODSC_MODEL_COMPARTMENT_OCID or fetch_service_compartment(): #TODO replace this with method that does not raise exception
42+
if (
43+
ODSC_MODEL_COMPARTMENT_OCID or fetch_service_compartment()
44+
): # TODO replace this with method that does not raise exception
4245
return self.finish(dict(status="ok"))
4346
elif known_realm():
4447
return self.finish(dict(status="compatible"))

0 commit comments

Comments
 (0)