From f87409013789b7ad3ae9289a3211c0730a6eb3e5 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Thu, 16 Feb 2017 10:01:50 -0500 Subject: [PATCH] Syntax Error for issue#2490 --- xCAT-server/lib/perl/xCAT/PPC.pm | 2 +- xCAT-server/lib/xcat/plugins/kvm.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index d4989ff58..cfb58162c 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -235,7 +235,7 @@ sub process_command { if ($command eq 'rpower') { $subcommand = $request->{op}; } #pdu commands will be handled in the pdu plugin - if(($subcmd eq 'pduoff') || ($subcmd eq 'pduon') || ($subcmd eq 'pdustat')){ + if(($subcommand eq 'pduoff') || ($subcommand eq 'pduon') || ($subcommand eq 'pdustat')){ return 0; } diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 0049a048a..7e83f850f 100755 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -3662,7 +3662,7 @@ sub process_request { } #pdu commands will be handled in the pdu plugin - if ($command eq "rpower" and grep(/^pduon|pduoff|pdustat/, @exargs)) { + if ($command eq "rpower" and grep(/^pduon|pduoff|pdustat$/, @exargs)) { return; }