sceptre-phenix icon indicating copy to clipboard operation
sceptre-phenix copied to clipboard

[phenix image] Update command not deleting old script from config

Open activeshadow opened this issue 3 years ago • 0 comments


Originally created by @glattercj on Fri, 29 Jan 2021 18:38:28 GMT


Each time update is called, it just appends the same script to the end of "script_order". The result is that the script is repeated in the final vmdb file multiple times.

1) phenix cfg edit image/foobar

...
script_order:
    - POSTBUILD_APT_CLEANUP
    - POSTBUILD_NO_ROOT_PASSWD
    - POSTBUILD_PHENIX_HOSTNAME
    - /phenix/vmdb2/scripts/baz
...

2) phenix image update foobar

3) phenix cfg edit image/foobar

...
script_order:
    - POSTBUILD_APT_CLEANUP
    - POSTBUILD_NO_ROOT_PASSWD
    - POSTBUILD_PHENIX_HOSTNAME
    - /phenix/vmdb2/scripts/baz
    - /phenix/vmdb2/scripts/baz
...

activeshadow avatar Apr 16 '21 17:04 activeshadow