title: Dataflow template parameters are not working
body: <p>I have an apache beam pipeline that works fine. I used to run it from cmd line and submit it to Dataflow and it works good.</p>
  <p>Now, I want to create a template for my pipeline. I succeed to create the template with the following cmd:</p>
  <pre><code>python main.py --runner DataflowRunner  --region europe-west3 --project X --temp_location gs://X/tmp --staging_location gs://X/staging --template_location gs://X/templates/ft_mc_etl --paramA &quot;defaultA&quot; --paramB &quot;defaultB&quot; --setup_file ./setup.py --save_main_session
  </code></pre>
  <p>and it creates the template file successfully.</p>
  <p>After that, when I try to create a job from template in dataflow, I customise my pipeline with paramA with newA, and paramB with newB. And while the execution, I can see in the job info in side bar, in the pipeline option, that the option paramA has value newA and same for B. But during the execution, it takes the default value submitted while creating the template (defaultA and defaultB)</p>
  <p>My code looks like this:</p>
  <pre><code>class UserOptions(PipelineOptions):
      @classmethod
      def _add_argparse_args(cls, parser):
          parser.add_value_provider_argument(
              '--paramA',
              default='pdefaultA'
          )
          parser.add_value_provider_argument(
              '--paramB',
              default='pdefaultB'
          )
  
  
  pipeline_options = PipelineOptions()
  with beam.Pipeline(options=pipeline_options) as p:
  
          user_options = pipeline_options.view_as(UserOptions)
          paramA = str(user_options.paramA)
          paramB = str(user_options.paramB)
  
          
          
  </code></pre>