Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 71a9297

Browse files
committed
bugfix: allow hybrid worker groups with spaces
1 parent 679aa36 commit 71a9297

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Providers/nxOMSAutomationWorker/automationworker/3.x/worker/jrdsclient.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from datetime import datetime
99
import time
1010
import traceback
11+
import urllib.parse
1112

1213

1314
import configuration3 as configuration
@@ -69,8 +70,9 @@ def get_sandbox_actions(self):
6970
}
7071
]
7172
"""
73+
encoded_hybrid_worker_group_name = urllib.parse.quote(self.HybridWorkerGroupName)
7274
url = self.base_uri + "/automationAccounts/" + self.account_id + \
73-
"/Sandboxes/GetSandboxActions?HybridWorkerGroupName=" + self.HybridWorkerGroupName + \
75+
"/Sandboxes/GetSandboxActions?HybridWorkerGroupName=" + encoded_hybrid_worker_group_name + \
7476
"&api-version=" + self.protocol_version
7577
response = self.issue_request(lambda u: self.httpClient.get(u), url)
7678

Providers/nxOMSAutomationWorker/automationworker/worker/jrdsclient.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from datetime import datetime
88
import time
99
import traceback
10+
import urllib.parse
1011

1112

1213
import configuration
@@ -68,8 +69,9 @@ def get_sandbox_actions(self):
6869
}
6970
]
7071
"""
72+
encoded_hybrid_worker_group_name = urllib.parse.quote(self.HybridWorkerGroupName)
7173
url = self.base_uri + "/automationAccounts/" + self.account_id + \
72-
"/Sandboxes/GetSandboxActions?HybridWorkerGroupName=" + self.HybridWorkerGroupName + \
74+
"/Sandboxes/GetSandboxActions?HybridWorkerGroupName=" + encoded_hybrid_worker_group_name + \
7375
"&api-version=" + self.protocol_version
7476
response = self.issue_request(lambda u: self.httpClient.get(u), url)
7577

0 commit comments

Comments
 (0)