Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 4c20e20

Browse files
Merge pull request #117 from centreon/MON-13004-add-discovery-tags2
change tags path for packaging
2 parents 7c292d8 + 0551e0e commit 4c20e20

7 files changed

Lines changed: 20 additions & 20 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
# limitations under the License.
1919
#
2020

21-
package centreon::class::cisTags;
21+
package centreon::vmware::cisTags;
2222

2323
use strict;
2424
use warnings;
25-
use centreon::class::http::http;
25+
use centreon::vmware::http::http;
2626
use JSON::XS;
2727

2828
# https://developer.vmware.com/apis/vsphere-automation/v7.0U2/cis/
@@ -91,7 +91,7 @@ sub configuration {
9191
$self->{curl_opts} = $curl_opts;
9292
}
9393

94-
$self->{http} = centreon::class::http::http->new(logger => $options{logger});
94+
$self->{http} = centreon::vmware::http::http->new(logger => $options{logger});
9595
$self->{is_error} = 0;
9696
return 0;
9797
}

centreon/vmware/cmddiscovery.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use base qw(centreon::vmware::cmdbase);
2525
use strict;
2626
use warnings;
2727
use centreon::vmware::common;
28-
use centreon::class::cisTags;
28+
use centreon::vmware::cisTags;
2929

3030
sub new {
3131
my ($class, %options) = @_;
@@ -92,7 +92,7 @@ sub run {
9292
}
9393

9494
if (defined($self->{tags})) {
95-
my $cisTags = centreon::class::cisTags->new();
95+
my $cisTags = centreon::vmware::cisTags->new();
9696
$cisTags->configuration(
9797
url => $self->{connector}->{config_vsphere_url},
9898
username => $self->{connector}->{config_vsphere_user},
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
# limitations under the License.
1919
#
2020

21-
package centreon::class::http::backend::curl;
21+
package centreon::vmware::http::backend::curl;
2222

2323
use strict;
2424
use warnings;
2525
use URI;
2626
use Net::Curl::Easy;
27-
use centreon::class::http::backend::curlconstants;
27+
use centreon::vmware::http::backend::curlconstants;
2828

2929
sub new {
3030
my ($class, %options) = @_;
@@ -39,7 +39,7 @@ sub new {
3939
sub check_options {
4040
my ($self, %options) = @_;
4141

42-
$self->{constant_cb} = \&centreon::class::http::backend::curlconstants::get_constant_value;
42+
$self->{constant_cb} = \&centreon::vmware::http::backend::curlconstants::get_constant_value;
4343

4444
if (!defined($options{request}->{curl_opt})) {
4545
$options{request}->{curl_opt} = [];

centreon/class/http/backend/curlconstants.pm renamed to centreon/vmware/http/backend/curlconstants.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# limitations under the License.
1919
#
2020

21-
package centreon::class::http::backend::curlconstants;
21+
package centreon::vmware::http::backend::curlconstants;
2222

2323
use strict;
2424
use warnings;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
# limitations under the License.
1919
#
2020

21-
package centreon::class::http::backend::lwp;
21+
package centreon::vmware::http::backend::lwp;
2222

2323
use strict;
2424
use warnings;
25-
use centreon::class::http::backend::useragent;
25+
use centreon::vmware::http::backend::useragent;
2626
use URI;
2727
use IO::Socket::SSL;
2828

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# limitations under the License.
1919
#
2020

21-
package centreon::class::http::backend::useragent;
21+
package centreon::vmware::http::backend::useragent;
2222

2323
use strict;
2424
use warnings;
@@ -30,7 +30,7 @@ sub new {
3030
bless $self, $class;
3131

3232
$self = LWP::UserAgent::new(@_);
33-
$self->agent('centreon::class::http::backend::useragent');
33+
$self->agent('centreon::vmware::http::backend::useragent');
3434

3535
$self->{credentials} = $options{credentials} if defined($options{credentials});
3636
$self->{username} = $options{username} if defined($options{username});
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# limitations under the License.
1919
#
2020

21-
package centreon::class::http::http;
21+
package centreon::vmware::http::http;
2222

2323
use strict;
2424
use warnings;
@@ -86,17 +86,17 @@ sub check_options {
8686

8787
if (!defined($self->{backend_lwp}) && !defined($self->{backend_curl})) {
8888
if ($options{request}->{http_backend} eq 'lwp' && $self->mymodule_load(
89-
logger => $options{logger}, module => 'centreon::class::http::backend::lwp',
90-
error_msg => "Cannot load module 'centreon::class::http::backend::lwp'."
89+
logger => $options{logger}, module => 'centreon::vmware::http::backend::lwp',
90+
error_msg => "Cannot load module 'centreon::vmware::http::backend::lwp'."
9191
) == 0) {
92-
$self->{backend_lwp} = centreon::class::http::backend::lwp->new(%options, logger => $self->{logger});
92+
$self->{backend_lwp} = centreon::vmware::http::backend::lwp->new(%options, logger => $self->{logger});
9393
}
9494

9595
if ($options{request}->{http_backend} eq 'curl' && $self->mymodule_load(
96-
logger => $options{logger}, module => 'centreon::class::http::backend::curl',
97-
error_msg => "Cannot load module 'centreon::class::http::backend::curl'."
96+
logger => $options{logger}, module => 'centreon::vmware::http::backend::curl',
97+
error_msg => "Cannot load module 'centreon::vmware::http::backend::curl'."
9898
) == 0) {
99-
$self->{backend_curl} = centreon::class::http::backend::curl->new(%options, logger => $self->{logger});
99+
$self->{backend_curl} = centreon::vmware::http::backend::curl->new(%options, logger => $self->{logger});
100100
}
101101
}
102102

0 commit comments

Comments
 (0)