Skip to content

Commit c3cfc1f

Browse files
Merge pull request #153 from jinyoungmoonDEV/master
fix: fix elb typo
2 parents 225eaab + 63a8930 commit c3cfc1f

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/spaceone/inventory/connector/aws_elb_connector/connector.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,23 +307,23 @@ def get_formatted_conditions(raw_conditions: list, is_default: bool) -> list:
307307
header_values: list = config.get("Values")
308308

309309
if header_name and header_values:
310-
str_value = ",".join(header_values)
310+
str_value = ','.join(header_values)
311311
str_conditions.append("HTTP Header :")
312312
str_conditions.append(f" - {header_name} : {str_value}")
313313

314314
elif field == "http-request-method":
315315
if values := condition.get("HttpRequestMethodConfig", {}).get("Values"):
316-
str_value = ",".join(values)
316+
str_value = ','.join(values)
317317
str_conditions.append(f"HTTP Request Method : {str_value}")
318318

319319
elif field == "host-header":
320320
if values := condition.get("HostHeaderConfig", {}).get("Values"):
321-
str_value = ",".join(values)
321+
str_value = ','.join(values)
322322
str_conditions.append(f"Host Header : {str_value}")
323323

324324
elif field == "path-pattern":
325325
if values := condition.get("PathPatternConfig", {}).get("Values"):
326-
str_value = ",".join(values)
326+
str_value = ','.join(values)
327327
str_conditions.append(f"Path Pattern : {str_value}")
328328

329329
elif field == "query-string":
@@ -341,7 +341,7 @@ def get_formatted_conditions(raw_conditions: list, is_default: bool) -> list:
341341

342342
elif field == "source-ip":
343343
if values := condition.get("SourceIpConfig", {}).get("Values"):
344-
str_value = ",".join(values)
344+
str_value = ','.join(values)
345345
str_conditions.append(f"Source IP : {str_value}")
346346

347347
return str_conditions

src/spaceone/inventory/connector/aws_elb_connector/schema/resource.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,7 @@
108108
),
109109
TextDyField.data_source("Port", "port"),
110110
TextDyField.data_source("Priority", "priority"),
111-
ListDyField.data_source(
112-
"Conditions",
113-
"conditions",
114-
default_badge={"type": "outline", "delimiter": "<br>"},
115-
),
111+
ListDyField.data_source("Conditions", "conditions"),
116112
ListDyField.data_source("Actions", "actions"),
117113
TextDyField.data_source("Rule Arn", "rule_arn"),
118114
],

0 commit comments

Comments
 (0)