mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-13 01:40:26 +00:00
fix issue 2727, add Async path to @INC when want to use it (#2730)
This commit is contained in:
@ -12,6 +12,10 @@ package xCAT_plugin::docker;
|
||||
BEGIN
|
||||
{
|
||||
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
|
||||
my $async_path = "/usr/local/share/perl5/";
|
||||
unless (grep { $_ eq $async_path } @INC) {
|
||||
push @INC, $async_path;
|
||||
}
|
||||
}
|
||||
use lib "$::XCATROOT/lib/perl";
|
||||
|
||||
|
@ -6,6 +6,10 @@ package xCAT_plugin::openbmc;
|
||||
BEGIN
|
||||
{
|
||||
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
|
||||
my $async_path = "/usr/local/share/perl5/";
|
||||
unless (grep { $_ eq $async_path } @INC) {
|
||||
push @INC, $async_path;
|
||||
}
|
||||
}
|
||||
use lib "$::XCATROOT/lib/perl";
|
||||
use strict;
|
||||
|
Reference in New Issue
Block a user