Skip to content
Snippets Groups Projects

Issue #3263543 by Xiaohua Guan, yas: Fix the duplicated cloud config (OpenStack)

Merged xiaohua guan requested to merge issue/cloud-3263543:3263543-fix-the-duplicated into 5.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -127,7 +127,7 @@ function openstack_form_cloud_config_openstack_add_form_create_cloud_context($na
*/
function openstack_cloud_config_presave(CloudConfig $cloud_config): void {
if ($cloud_config->bundle() === 'openstack') {
if ($cloud_config->isNew()) {
if ($cloud_config->isNew() && !$cloud_config->isRemote()) {
// Auto generate the cloud_context.
$cloud_context = openstack_form_cloud_config_openstack_add_form_create_cloud_context(
$cloud_config->getName(),
Loading