Handle leading '?' in SAS token. Strip names when splitting "sinks".
This commit is contained in:
Родитель
16a98bc383
Коммит
bed668c825
|
@ -92,7 +92,7 @@ def getSinkList(feature_config):
|
|||
:rtype: [str]
|
||||
"""
|
||||
if feature_config and 'sinks' in feature_config and feature_config['sinks']:
|
||||
return map(str.strip, feature_config['sinks'].split(','))
|
||||
return [sink_name.strip() for sink_name in feature_config['sinks'].split(',')]
|
||||
return []
|
||||
|
||||
|
||||
|
|
|
@ -456,7 +456,9 @@ class LadConfigAll:
|
|||
account = self._ext_settings.read_protected_config('storageAccountName')
|
||||
if not account:
|
||||
return False, "Empty storageAccountName"
|
||||
token = self._ext_settings.read_protected_config('storageAccountSasToken')
|
||||
token = self._ext_settings.read_protected_config('storageAccountSasToken').strip()
|
||||
if '?' == token[0]:
|
||||
token = token[1:]
|
||||
if not token:
|
||||
return False, "Empty storageAccountSasToken"
|
||||
endpoint = get_storage_endpoint_with_account(account,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"handlerSettings": {
|
||||
"protectedSettings": {
|
||||
"storageAccountEndPoint": "https://core.windows.net/",
|
||||
"storageAccountSasToken": "NOT_A_REAL_TOKEN",
|
||||
"storageAccountSasToken": "?NOT_A_REAL_TOKEN",
|
||||
"storageAccountName": "ladunittestfakeaccount",
|
||||
"sinksConfig": {
|
||||
"sink": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче