2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00

Merge pull request #5670 from cxhong/5655

Get group name from lsdef command
This commit is contained in:
Mark Gurevich 2018-09-26 17:06:02 -04:00 committed by GitHub
commit 8fb1fc8dbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ use xCAT::Utils;
# Main
my $rc = 0;
&parse_args;
my $cmd = "lsdef -t group";
my $cmd = "lsdef -t group | awk '{print \$1}'";
my @grpoutput = xCAT::Utils->runcmd($cmd, 0);
if ($::RUNCMD_RC != 0)
{ # error