sceptre-phenix
sceptre-phenix copied to clipboard
[phenix image] Update command not deleting old script from config
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
...