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 37a42b7
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 @@ -10,6 +10,7 @@
import traceback


import urllib.parse
import configuration3 as configuration
import locallogger
from workerexception import *
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 @@ -9,6 +9,7 @@
import traceback


import urllib.parse
import configuration
import locallogger
import linuxutil
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 37a42b7

Please sign in to comment.