Skip to content

Commit 06a4a94

Browse files
authored
Merge pull request #223 from UncoderIO/gis-9197_fix
gis-9197 fixes
2 parents d1efabf + 46b187c commit 06a4a94

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

uncoder-core/app/translator/platforms/sentinel_one/mapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from app.translator.core.mapping import LogSourceSignature, BaseStrictLogSourcesPlatformMappings
1+
from app.translator.core.mapping import BaseStrictLogSourcesPlatformMappings, LogSourceSignature
22
from app.translator.platforms.sentinel_one.const import sentinel_one_power_query_details
33

44

uncoder-core/app/translator/platforms/sentinel_one/str_value_manager.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
limitations under the License.
1717
-----------------------------------------------------------------
1818
"""
19-
from app.translator.core.custom_types.values import ValueType
20-
from app.translator.core.str_value_manager import BaseSpecSymbol, StrValue, StrValueManager
21-
from app.translator.platforms.sentinel_one.custom_types.values import SentinelOneValueType
19+
from app.translator.core.str_value_manager import StrValueManager
2220
from app.translator.platforms.sentinel_one.escape_manager import (
2321
SentinelOnePowerQueryEscapeManager,
2422
sentinel_one_power_query_escape_manager,
@@ -28,17 +26,5 @@
2826
class SentinelOnePowerQueryStrValueManager(StrValueManager):
2927
escape_manager: SentinelOnePowerQueryEscapeManager = sentinel_one_power_query_escape_manager
3028

31-
def from_container_to_str(self, container: StrValue, value_type: str = ValueType.value) -> str:
32-
result = ""
33-
for el in container.split_value:
34-
if isinstance(el, str):
35-
result += self.escape_manager.escape(el, value_type)
36-
elif isinstance(el, BaseSpecSymbol) and (pattern := self.container_spec_symbols_map.get(type(el))):
37-
if value_type == ValueType.regex_value:
38-
pattern = self.escape_manager.escape(pattern, SentinelOneValueType.double_escape_regex_value)
39-
result += pattern
40-
41-
return result
42-
4329

4430
sentinel_one_power_query_str_value_manager = SentinelOnePowerQueryStrValueManager()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy