Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: allow hybrid worker groups with spaces #906

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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