File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
lib/GLPI/Agent/SOAP/WsMan Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ inventory:
2525remoteinventory:
2626* fix RedHat RHN systemid set as WINPRODID
2727* fix battery inventory on windows
28+ * fix SessionID WsMan class support
2829
2930netdiscovery/netinventory:
3031* fix #922: Add Radware Alteon Load Balancer support
Original file line number Diff line number Diff line change @@ -82,7 +82,14 @@ sub _load_class {
8282 my ($class , $namespace ) = @_ ;
8383
8484 unless ($INC {" $class .pm" }) {
85- if (-e " $wsman_classes_path /$class .pm" ) {
85+ # SessionID class support is included in SessionId module
86+ if ($class eq " SessionID" ) {
87+ my $module = " GLPI::Agent::SOAP::WsMan::SessionId" ;
88+ $module -> require();
89+ warn " Failure while loading $class : $EVAL_ERROR \n "
90+ if $EVAL_ERROR ;
91+ $INC {" $class .pm" } = $INC {module2file($module )};
92+ } elsif (-e " $wsman_classes_path /$class .pm" ) {
8693 my $module = " GLPI::Agent::SOAP::WsMan::$class " ;
8794 $module -> require();
8895 warn " Failure while loading $class : $EVAL_ERROR \n "
Original file line number Diff line number Diff line change @@ -49,4 +49,12 @@ sub uuid {
4949 return $self -> {_uuid } = $uuid ;
5050}
5151
52+ package
53+ SessionID;
54+
55+ use parent
56+ ' Node' ;
57+
58+ use constant xmlns => ' p' ;
59+
52601;
You can’t perform that action at this time.
0 commit comments