[ 
https://issues.apache.org/jira/browse/BEAM-9093?focusedWorklogId=375241&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-375241
 ]

ASF GitHub Bot logged work on BEAM-9093:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Jan/20 21:59
            Start Date: 21/Jan/20 21:59
    Worklog Time Spent: 10m 
      Work Description: ihji commented on pull request #10613: [BEAM-9093] Log 
invalid overwrites in pipeline options
URL: https://github.com/apache/beam/pull/10613#discussion_r369260182
 
 

 ##########
 File path: sdks/python/apache_beam/options/pipeline_options.py
 ##########
 @@ -288,15 +288,20 @@ def get_all_options(self,
       _LOGGER.warning("Discarding unparseable args: %s", unknown_args)
     result = vars(known_args)
 
+    overrides = self._all_options.copy()
     # Apply the overrides if any
     for k in list(result):
+      overrides.pop(k, None)
       if k in self._all_options:
         result[k] = self._all_options[k]
       if (drop_default and
           parser.get_default(k) == result[k] and
           not isinstance(parser.get_default(k), ValueProvider)):
         del result[k]
 
+    if  overrides:
 
 Review comment:
   Looks like there are two spaces.
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 375241)
    Time Spent: 40m  (was: 0.5h)

> Pipeline options which with different underlying store variable does not get 
> over written
> -----------------------------------------------------------------------------------------
>
>                 Key: BEAM-9093
>                 URL: https://issues.apache.org/jira/browse/BEAM-9093
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Ankur Goenka
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Example:
> PipelineOptions(flags=[],**\{'no_use_public_ips': True,})
> Expectation: use_public_ips should be set False.
> Actual: the value is not used as its not passed through argparser
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to