Skip to content

Commit 93fe99e

Browse files
committed
Formatting with black
1 parent e91fc92 commit 93fe99e

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

ecs_composex/ecs/ecs_service.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,17 +291,14 @@ def generate_security_group_props(allowed_source, service_name):
291291
),
292292
}
293293

294-
if (
295-
keyisset("CidrIp", props)
296-
and isinstance(props["CidrIp"], str)
297-
):
294+
if keyisset("CidrIp", props) and isinstance(props["CidrIp"], str):
298295
try:
299296
IPv4Interface(props["CidrIp"])
300297
except Exception as error:
301-
LOG.error(f"Falty IP Address: {allowed_source} - ecs_service {service_name}")
302-
raise ValueError(
303-
"Not a valid IPv4 CIDR notation", props["CidrIp"], error
298+
LOG.error(
299+
f"Falty IP Address: {allowed_source} - ecs_service {service_name}"
304300
)
301+
raise ValueError("Not a valid IPv4 CIDR notation", props["CidrIp"], error)
305302
return props
306303

307304

ecs_composex/ecs/ecs_service_config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,7 @@ def set_service_deploy(self, definition):
535535
f"Attribute {depends_key} is invalid. Must be one of",
536536
allowed_values,
537537
)
538-
self.container_start_condition = deployment["labels"][
539-
depends_key
540-
]
538+
self.container_start_condition = deployment["labels"][depends_key]
541539

542540
def set_xray(self, definition):
543541
"""

0 commit comments

Comments
 (0)