@@ -71,8 +71,9 @@ object FabricClient extends RESTUtils {
71
71
private def getMLWorkloadHost : Option [String ] = {
72
72
if (WorkspacePeEnabled ) {
73
73
getMLWorkloadPEHost
74
+ } else {
75
+ extractSchemeAndHost(FabricContext .get(" trident.lakehouse.tokenservice.endpoint" ))
74
76
}
75
- extractSchemeAndHost(FabricContext .get(" trident.lakehouse.tokenservice.endpoint" ))
76
77
}
77
78
78
79
private def getMLWorkloadPEHost : Option [String ] = {
@@ -153,21 +154,21 @@ object FabricClient extends RESTUtils {
153
154
private def getPbiSharedHost : Option [String ] = {
154
155
if (WorkspacePeEnabled ) {
155
156
getPEPbiSharedHost
157
+ } else {
158
+ val endpoint = FabricContext .get(" spark.trident.pbiHost" ) match {
159
+ case Some (value) if value.nonEmpty =>
160
+ value.replace(" https://" , " " ).replace(" http://" , " " )
161
+ case _ =>
162
+ PbiEnv match {
163
+ case " edog" => " powerbiapi.analysis-df.windows.net"
164
+ case " daily" => " dailyapi.fabric.microsoft.com"
165
+ case " dxt" => " dxtapi.fabric.microsoft.com"
166
+ case " msit" => " msitapi.fabric.microsoft.com"
167
+ case _ => " api.fabric.microsoft.com"
168
+ }
169
+ }
170
+ Some (" https://" + endpoint)
156
171
}
157
- val endpoint = FabricContext .get(" spark.trident.pbiHost" ) match {
158
- case Some (value) if value.nonEmpty =>
159
- value.replace(" https://" , " " ).replace(" http://" , " " )
160
- case _ =>
161
- PbiEnv match {
162
- case " edog" => " powerbiapi.analysis-df.windows.net"
163
- case " daily" => " dailyapi.fabric.microsoft.com"
164
- case " dxt" => " dxtapi.fabric.microsoft.com"
165
- case " msit" => " msitapi.fabric.microsoft.com"
166
- case _ => " api.fabric.microsoft.com"
167
- }
168
- }
169
-
170
- Some (" https://" + endpoint)
171
172
}
172
173
173
174
private def getPEPbiSharedHost : Option [String ] = {
0 commit comments