File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1010from ads .aqua .decorator import handle_exceptions
1111from ads .aqua .exception import AquaResourceAccessError
1212from 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
1516class 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" ))
You can’t perform that action at this time.
0 commit comments