Skip to content

Commit dedb1c2

Browse files
authored
Bug: Replace extra_registries with extra_public_registries (#1757)
* Bug: Replacing extra_registries with extra_public_registries * Fix linting error
1 parent 8ecebec commit dedb1c2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

awswrangler/emr.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,13 @@ def _build_cluster_args(**pars: Any) -> Dict[str, Any]: # pylint: disable=too-m
155155
{"Classification": "spark-log4j", "Properties": {"log4j.rootCategory": f"{pars['spark_log_level']}, console"}}
156156
]
157157
if pars["docker"] is True:
158-
if pars.get("extra_registries") is None:
159-
extra_registries: List[str] = []
158+
if pars.get("extra_public_registries") is None:
159+
extra_public_registries: List[str] = []
160160
else:
161-
extra_registries = pars["extra_registries"]
162-
registries: str = f"local,centos,{account_id}.dkr.ecr.{region}.amazonaws.com,{','.join(extra_registries)}"
161+
extra_public_registries = pars["extra_public_registries"]
162+
registries: str = (
163+
f"local,centos,{account_id}.dkr.ecr.{region}.amazonaws.com,{','.join(extra_public_registries)}"
164+
)
163165
registries = registries[:-1] if registries.endswith(",") else registries
164166
args["Configurations"].append(
165167
{

0 commit comments

Comments
 (0)