line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package QualysGuard::Response::RemediationTickets; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6508
|
use warnings; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
91
|
|
4
|
1
|
|
|
1
|
|
9
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
51
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use base qw( QualysGuard::Response ); |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
176
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# ============================================================= |
12
|
|
|
|
|
|
|
# - new |
13
|
|
|
|
|
|
|
# ============================================================= |
14
|
|
|
|
|
|
|
sub new { |
15
|
|
|
|
|
|
|
my ( $class, $xml ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
my $self = __PACKAGE__->SUPER::new( $xml ); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
bless $self, $class; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
# -- check for QualysGuard function error |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
if ( $self->exists('/REMEDIATION_TICKETS/ERROR') ) { |
24
|
|
|
|
|
|
|
$self->{error_code} = $self->findvalue('/REMEDIATION_TICKETS/ERROR/@number'); |
25
|
|
|
|
|
|
|
$self->{error_text} = $self->getNodeText('/REMEDIATION_TICKETS/ERROR'); |
26
|
|
|
|
|
|
|
$self->{error_text} =~ s/^\s+(.*)\s+$/$1/m; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
return $self; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |