From 0a6e85478698bd1efa9079bdd432bbf94847fbf6 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Wed, 26 Sep 2018 16:23:47 -0400 Subject: [PATCH] get group name for lsdef command --- xCAT-client/share/xcat/tools/groupfiles4dsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-client/share/xcat/tools/groupfiles4dsh b/xCAT-client/share/xcat/tools/groupfiles4dsh index faf2aeceb..2174d84d8 100755 --- a/xCAT-client/share/xcat/tools/groupfiles4dsh +++ b/xCAT-client/share/xcat/tools/groupfiles4dsh @@ -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