Polber commented on code in PR #30864:
URL: https://github.com/apache/beam/pull/30864#discussion_r1554320826


##########
sdks/python/apache_beam/runners/common.py:
##########
@@ -1981,28 +1981,27 @@ def env_key(env):
             base_env_key(e)
             for e in environments.expand_anyof_environments(env)))
 
-  cannonical_enviornments = collections.defaultdict(list)
+  canonical_environments = collections.defaultdict(list)
   for env_id, env in pipeline_proto.components.environments.items():
-    cannonical_enviornments[env_key(env)].append(env_id)
+    canonical_environments[env_key(env)].append(env_id)
 
-  if len(cannonical_enviornments) == len(
-      pipeline_proto.components.environments):
+  if len(canonical_environments) == 
len(pipeline_proto.components.environments):
     # All environments are already sufficiently distinct.
     return pipeline_proto
 
   environment_remappings = {
       e: es[0]
-      for es in cannonical_enviornments.values() for e in es
+      for es in canonical_environments.values() for e in es
   }
 
   if not inplace:
     pipeline_proto = copy.copy(pipeline_proto)
 
   for t in pipeline_proto.components.transforms.values():

Review Comment:
   Fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to