Skip to content

Commit

Permalink
Normalized code with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPreston committed Feb 18, 2021
1 parent 8876047 commit 166b355
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 5 additions & 1 deletion ecs_composex/dns/dns_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@
)

PRIVATE_NAMESPACE_CON_T = "PrivateNamespaceConditionSet"
PRIVATE_NAMESPACE_CON = Not(Equals(Ref(dns_params.PRIVATE_NAMESPACE_ID), dns_params.PRIVATE_NAMESPACE_ID.Default))
PRIVATE_NAMESPACE_CON = Not(
Equals(
Ref(dns_params.PRIVATE_NAMESPACE_ID), dns_params.PRIVATE_NAMESPACE_ID.Default
)
)
7 changes: 5 additions & 2 deletions ecs_composex/ecs/ecs_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@
PRIVATE_DNS_ZONE_ID,
PUBLIC_DNS_ZONE_ID,
PUBLIC_DNS_ZONE_NAME,
PRIVATE_NAMESPACE_ID
PRIVATE_NAMESPACE_ID,
)
from ecs_composex.dns.dns_conditions import (
PRIVATE_ZONE_ID_CON_T,
PRIVATE_NAMESPACE_CON_T,
)
from ecs_composex.dns.dns_conditions import PRIVATE_ZONE_ID_CON_T, PRIVATE_NAMESPACE_CON_T
from ecs_composex.ecs import ecs_params, ecs_conditions
from ecs_composex.ecs.ecs_conditions import USE_HOSTNAME_CON_T
from ecs_composex.ecs.ecs_params import SERVICE_NAME, SERVICE_HOSTNAME
Expand Down
4 changes: 3 additions & 1 deletion ecs_composex/ecs/ecs_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ def initialize_service_template(service_name):
service_tpl.add_condition(
dns_conditions.PRIVATE_ZONE_ID_CON_T, dns_conditions.PRIVATE_ZONE_ID_CON
)
service_tpl.add_condition(dns_conditions.PRIVATE_NAMESPACE_CON_T, dns_conditions.PRIVATE_NAMESPACE_CON)
service_tpl.add_condition(
dns_conditions.PRIVATE_NAMESPACE_CON_T, dns_conditions.PRIVATE_NAMESPACE_CON
)
return service_tpl


Expand Down

0 comments on commit 166b355

Please sign in to comment.