diff --git a/connectors/vmware/src/centreon/class/cisTags.pm b/connectors/vmware/src/centreon/vmware/cisTags.pm similarity index 98% rename from connectors/vmware/src/centreon/class/cisTags.pm rename to connectors/vmware/src/centreon/vmware/cisTags.pm index f66130c6b..5d4656deb 100644 --- a/connectors/vmware/src/centreon/class/cisTags.pm +++ b/connectors/vmware/src/centreon/vmware/cisTags.pm @@ -18,11 +18,11 @@ # limitations under the License. # -package centreon::class::cisTags; +package centreon::vmware::cisTags; use strict; use warnings; -use centreon::class::http::http; +use centreon::vmware::http::http; use JSON::XS; # https://developer.vmware.com/apis/vsphere-automation/v7.0U2/cis/ @@ -91,7 +91,7 @@ sub configuration { $self->{curl_opts} = $curl_opts; } - $self->{http} = centreon::class::http::http->new(logger => $options{logger}); + $self->{http} = centreon::vmware::http::http->new(logger => $options{logger}); $self->{is_error} = 0; return 0; } diff --git a/connectors/vmware/src/centreon/vmware/cmddiscovery.pm b/connectors/vmware/src/centreon/vmware/cmddiscovery.pm index ec49b516c..690641f66 100644 --- a/connectors/vmware/src/centreon/vmware/cmddiscovery.pm +++ b/connectors/vmware/src/centreon/vmware/cmddiscovery.pm @@ -25,7 +25,7 @@ use base qw(centreon::vmware::cmdbase); use strict; use warnings; use centreon::vmware::common; -use centreon::class::cisTags; +use centreon::vmware::cisTags; sub new { my ($class, %options) = @_; @@ -92,7 +92,7 @@ sub run { } if (defined($self->{tags})) { - my $cisTags = centreon::class::cisTags->new(); + my $cisTags = centreon::vmware::cisTags->new(); $cisTags->configuration( url => $self->{connector}->{config_vsphere_url}, username => $self->{connector}->{config_vsphere_user}, diff --git a/connectors/vmware/src/centreon/class/http/backend/curl.pm b/connectors/vmware/src/centreon/vmware/http/backend/curl.pm similarity index 98% rename from connectors/vmware/src/centreon/class/http/backend/curl.pm rename to connectors/vmware/src/centreon/vmware/http/backend/curl.pm index 9c95d29b2..6d746f913 100644 --- a/connectors/vmware/src/centreon/class/http/backend/curl.pm +++ b/connectors/vmware/src/centreon/vmware/http/backend/curl.pm @@ -18,13 +18,13 @@ # limitations under the License. # -package centreon::class::http::backend::curl; +package centreon::vmware::http::backend::curl; use strict; use warnings; use URI; use Net::Curl::Easy; -use centreon::class::http::backend::curlconstants; +use centreon::vmware::http::backend::curlconstants; sub new { my ($class, %options) = @_; @@ -39,7 +39,7 @@ sub new { sub check_options { my ($self, %options) = @_; - $self->{constant_cb} = \¢reon::class::http::backend::curlconstants::get_constant_value; + $self->{constant_cb} = \¢reon::vmware::http::backend::curlconstants::get_constant_value; if (!defined($options{request}->{curl_opt})) { $options{request}->{curl_opt} = []; diff --git a/connectors/vmware/src/centreon/class/http/backend/curlconstants.pm b/connectors/vmware/src/centreon/vmware/http/backend/curlconstants.pm similarity index 94% rename from connectors/vmware/src/centreon/class/http/backend/curlconstants.pm rename to connectors/vmware/src/centreon/vmware/http/backend/curlconstants.pm index 1f78aa86d..8e409c009 100644 --- a/connectors/vmware/src/centreon/class/http/backend/curlconstants.pm +++ b/connectors/vmware/src/centreon/vmware/http/backend/curlconstants.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package centreon::class::http::backend::curlconstants; +package centreon::vmware::http::backend::curlconstants; use strict; use warnings; diff --git a/connectors/vmware/src/centreon/class/http/backend/lwp.pm b/connectors/vmware/src/centreon/vmware/http/backend/lwp.pm similarity index 98% rename from connectors/vmware/src/centreon/class/http/backend/lwp.pm rename to connectors/vmware/src/centreon/vmware/http/backend/lwp.pm index de490efa2..9f718d624 100644 --- a/connectors/vmware/src/centreon/class/http/backend/lwp.pm +++ b/connectors/vmware/src/centreon/vmware/http/backend/lwp.pm @@ -18,11 +18,11 @@ # limitations under the License. # -package centreon::class::http::backend::lwp; +package centreon::vmware::http::backend::lwp; use strict; use warnings; -use centreon::class::http::backend::useragent; +use centreon::vmware::http::backend::useragent; use URI; use IO::Socket::SSL; diff --git a/connectors/vmware/src/centreon/class/http/backend/useragent.pm b/connectors/vmware/src/centreon/vmware/http/backend/useragent.pm similarity index 92% rename from connectors/vmware/src/centreon/class/http/backend/useragent.pm rename to connectors/vmware/src/centreon/vmware/http/backend/useragent.pm index 2a9a1c2c2..228638c2c 100644 --- a/connectors/vmware/src/centreon/class/http/backend/useragent.pm +++ b/connectors/vmware/src/centreon/vmware/http/backend/useragent.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package centreon::class::http::backend::useragent; +package centreon::vmware::http::backend::useragent; use strict; use warnings; @@ -30,7 +30,7 @@ sub new { bless $self, $class; $self = LWP::UserAgent::new(@_); - $self->agent('centreon::class::http::backend::useragent'); + $self->agent('centreon::vmware::http::backend::useragent'); $self->{credentials} = $options{credentials} if defined($options{credentials}); $self->{username} = $options{username} if defined($options{username}); diff --git a/connectors/vmware/src/centreon/class/http/http.pm b/connectors/vmware/src/centreon/vmware/http/http.pm similarity index 91% rename from connectors/vmware/src/centreon/class/http/http.pm rename to connectors/vmware/src/centreon/vmware/http/http.pm index cd75c315e..f7ab98ae9 100644 --- a/connectors/vmware/src/centreon/class/http/http.pm +++ b/connectors/vmware/src/centreon/vmware/http/http.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package centreon::class::http::http; +package centreon::vmware::http::http; use strict; use warnings; @@ -86,17 +86,17 @@ sub check_options { if (!defined($self->{backend_lwp}) && !defined($self->{backend_curl})) { if ($options{request}->{http_backend} eq 'lwp' && $self->mymodule_load( - logger => $options{logger}, module => 'centreon::class::http::backend::lwp', - error_msg => "Cannot load module 'centreon::class::http::backend::lwp'." + logger => $options{logger}, module => 'centreon::vmware::http::backend::lwp', + error_msg => "Cannot load module 'centreon::vmware::http::backend::lwp'." ) == 0) { - $self->{backend_lwp} = centreon::class::http::backend::lwp->new(%options, logger => $self->{logger}); + $self->{backend_lwp} = centreon::vmware::http::backend::lwp->new(%options, logger => $self->{logger}); } if ($options{request}->{http_backend} eq 'curl' && $self->mymodule_load( - logger => $options{logger}, module => 'centreon::class::http::backend::curl', - error_msg => "Cannot load module 'centreon::class::http::backend::curl'." + logger => $options{logger}, module => 'centreon::vmware::http::backend::curl', + error_msg => "Cannot load module 'centreon::vmware::http::backend::curl'." ) == 0) { - $self->{backend_curl} = centreon::class::http::backend::curl->new(%options, logger => $self->{logger}); + $self->{backend_curl} = centreon::vmware::http::backend::curl->new(%options, logger => $self->{logger}); } }