Merge branch 'ent-12007-16207-error-vmware-en-discovery-por-falta-de-atributo' into 'develop'

Changed version for VMware discovery plugin

See merge request artica/pandorafms!6439
This commit is contained in:
Rafael Ameijeiras 2023-09-18 13:19:33 +00:00
commit ce38970c38
2 changed files with 3 additions and 1 deletions

View File

@ -45,4 +45,6 @@ ADD COLUMN `time_init` VARCHAR(45) NULL AFTER `date_init`,
ADD COLUMN `date_end` VARCHAR(45) NULL AFTER `time_init`,
ADD COLUMN `time_end` VARCHAR(45) NULL AFTER `date_end`;
UPDATE `tdiscovery_apps` SET `version` = '1.1' WHERE `short_name` = 'pandorafms.vmware';
COMMIT;

View File

@ -2642,7 +2642,7 @@ SET @short_name = 'pandorafms.vmware';
SET @name = 'VMware';
SET @section = 'app';
SET @description = 'Monitor ESXi hosts, datastores and VMs from a specific datacenter';
SET @version = '1.0';
SET @version = '1.1';
INSERT IGNORE INTO `tdiscovery_apps` (`id_app`, `short_name`, `name`, `section`, `description`, `version`) VALUES ('', @short_name, @name, @section, @description, @version);
SELECT @id_app := `id_app` FROM `tdiscovery_apps` WHERE `short_name` = @short_name;