Skip to content

Commit

Permalink
bugfix: allow hybrid worker groups with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwbarnett committed Aug 4, 2023
1 parent 679aa36 commit 71a9297
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from datetime import datetime
import time
import traceback
import urllib.parse


import configuration3 as configuration
Expand Down Expand Up @@ -69,8 +70,9 @@ def get_sandbox_actions(self):
}
]
"""
encoded_hybrid_worker_group_name = urllib.parse.quote(self.HybridWorkerGroupName)
url = self.base_uri + "/automationAccounts/" + self.account_id + \
"/Sandboxes/GetSandboxActions?HybridWorkerGroupName=" + self.HybridWorkerGroupName + \
"/Sandboxes/GetSandboxActions?HybridWorkerGroupName=" + encoded_hybrid_worker_group_name + \
"&api-version=" + self.protocol_version
response = self.issue_request(lambda u: self.httpClient.get(u), url)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from datetime import datetime
import time
import traceback
import urllib.parse


import configuration
Expand Down Expand Up @@ -68,8 +69,9 @@ def get_sandbox_actions(self):
}
]
"""
encoded_hybrid_worker_group_name = urllib.parse.quote(self.HybridWorkerGroupName)
url = self.base_uri + "/automationAccounts/" + self.account_id + \
"/Sandboxes/GetSandboxActions?HybridWorkerGroupName=" + self.HybridWorkerGroupName + \
"/Sandboxes/GetSandboxActions?HybridWorkerGroupName=" + encoded_hybrid_worker_group_name + \
"&api-version=" + self.protocol_version
response = self.issue_request(lambda u: self.httpClient.get(u), url)

Expand Down

0 comments on commit 71a9297

Please sign in to comment.