From 659c1b450363db0972d468c06cf483c6f9d825c5 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 22 Mar 2021 19:21:05 +0100 Subject: [PATCH] Wizard Aws.S3 RC1 --- .../godmode/wizards/DiscoveryTaskList.class.php | 17 +++++++++++++++++ pandora_console/include/styles/menu.css | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php index 4a919b2653..3b2fad0a5b 100644 --- a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php +++ b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php @@ -711,6 +711,19 @@ class DiscoveryTaskList extends HTML $data[6] .= __('Discovery.Cloud.Aws.RDS'); break; + case DISCOVERY_CLOUD_AWS_S3: + // Discovery Cloud S3. + $data[6] = html_print_image( + 'images/op_network.png', + true, + [ + 'title' => __('Discovery Cloud S3'), + 'class' => 'invert_filter', + ] + ).'  '; + $data[6] .= __('Discovery.Cloud.Aws.S3'); + break; + case DISCOVERY_APP_MYSQL: // Discovery Applications MySQL. $data[6] = html_print_image( @@ -866,6 +879,7 @@ class DiscoveryTaskList extends HTML && $task['type'] != DISCOVERY_APP_DB2 && $task['type'] != DISCOVERY_APP_SAP && $task['type'] != DISCOVERY_CLOUD_AWS_RDS + && $task['type'] != DISCOVERY_CLOUD_AWS_S3 ) { if (check_acl($config['id_user'], 0, 'MR')) { $data[9] .= ''; @@ -1068,6 +1082,9 @@ class DiscoveryTaskList extends HTML case DISCOVERY_CLOUD_AWS_RDS: return 'wiz=cloud&mode=amazonws&ki='.$task['auth_strings'].'&sub=rds&page=0'; + case DISCOVERY_CLOUD_AWS_S3: + return 'wiz=cloud&mode=amazonws&ki='.$task['auth_strings'].'&sub=s3&page=0'; + case DISCOVERY_APP_SAP: return 'wiz=app&mode=SAP&page=0'; diff --git a/pandora_console/include/styles/menu.css b/pandora_console/include/styles/menu.css index 15a634edb1..0b3aec965e 100644 --- a/pandora_console/include/styles/menu.css +++ b/pandora_console/include/styles/menu.css @@ -50,7 +50,7 @@ width: 100%; } -li:hover ul { +li:hover ul:not(.invisible) { display: block; }