mach-composer-cli
mach-composer-cli copied to clipboard
Fixed depends_on reference to non-existent commercetools_store resource
There actually was a bug in the 1.x version where for the null_resource.commercetools
the dependencies were generated using;
{% for store in stores %}
commercetools_store.{{ store.key }},
{% endfor %}
where stores
was never populated.
In the 2.x, managed stores are not implemented yet, but the depends_on
where 'correctly' rendered (as in; all stores where listed) but would always error out because those resources didn't exist.
Please note that managed stores have to be re-implemented still, but at least this change will make sure behaviour stays the same with 1.x and fixes issues when using MACH composer with configurations where commercetools are defined (but not managed by MACH composer).