2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-25 12:40:21 +00:00

get group name for lsdef command

This commit is contained in:
Casandra Qiu
2018-09-26 16:23:47 -04:00
parent 722709b61e
commit 0a6e854786

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