hashicorp / packer-plugin-openstack

Packer plugin for OpenStack Builder
https://www.packer.io/docs/builders/openstack
Mozilla Public License 2.0
21 stars 19 forks source link

Add pre-validate step to check if the image name has already been used #106

Closed shengxpa closed 1 year ago

shengxpa commented 1 year ago

For the packer image build on the Openstack platform, there is a lack of a pre-validate step for the image name like in the packer-plugin-amazon plugin, resulting in the name of the built image often being repeated like this: image It always causes some confusion when using image.

In this PR, a pre-validate step has been added to check if the image name has already been used. If the image name has already been used, an error will be output. "packer_force" parameter can be used to skip the pre-validate step when it is set to 'true' like the logic of packer-plugin-amazon plugin.

hashicorp-cla commented 1 year ago

CLA assistant check
All committers have signed the CLA.

shengxpa commented 1 year ago

Anyone can help have a review?

shengxpa commented 1 year ago

@nywilken Could you help have a review?

nywilken commented 1 year ago

Closing since there have been no updates to the issue. If you believe this is still an issue please or should be a feature please open an issue first so that other users can vote on and provide insight into the usage. Thanks!