Skip to content

Commit

Permalink
Merge pull request apache#29643 [yaml] Append rather than replace yam…
Browse files Browse the repository at this point in the history
…l label.
  • Loading branch information
robertwb authored Dec 6, 2023
2 parents 3d8bb4a + cdbd778 commit f710795
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdks/python/apache_beam/yaml/yaml_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,9 @@ def expand(self, pcolls):
python_provider = yaml_provider.InlineProvider({})

options = pipeline.options.view_as(GoogleCloudOptions)
options.labels = ["yaml=true"]
if not options.labels:
options.labels = []
options.labels += ["yaml=true"]

result = expand_transform(
self._spec,
Expand Down

0 comments on commit f710795

Please sign in to comment.