devspace icon indicating copy to clipboard operation
devspace copied to clipboard

get_flag prints double value if var is defined

Open pratikjagrut opened this issue 3 years ago • 1 comments

What happened? get_flag should print the value of the flag once.

What did you expect to happen instead? get_flag prints the value of the flag twice.

How can we reproduce the bug? (as minimally and precisely as possible)

My devspace.yaml:

version: v2beta1
name: double-flag

profiles:
  - name: local
  - name: test

pipelines:
  deploy:
    run: |-
      echo $(get_flag "profile")
      echo $(get_flag "force-deploy")
vars:
  DEVSPACE_FLAGS: --namespace double-flag
$ devspace deploy --profile local --profile test
local test local test
false

pratikjagrut avatar Dec 09 '22 04:12 pratikjagrut

@pratikjagrut thanks for the issue! Might be because deploy is calling run-pipeline internally

FabianKramm avatar Dec 09 '22 15:12 FabianKramm