Change defls() so it doesn't get complete definitions when only a list is requested.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1063 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6d0a889c80
commit
f15a387209
@ -1942,6 +1942,24 @@ sub defls
|
||||
$long++;
|
||||
|
||||
}
|
||||
|
||||
# which attrs do we want?
|
||||
# this is a temp hack to help scaling when you only
|
||||
# want a list of nodes - needs to be fully implemented
|
||||
if ($::opt_l || $::opt_w) {
|
||||
# if long or -w then get all the attrs
|
||||
$::ATTRLIST="all";
|
||||
} elsif ($::opt_i) {
|
||||
# is -i then just get the ones in the list
|
||||
$::ATTRLIST=$::opt_i;
|
||||
} elsif ( @::noderange || $::opt_o) {
|
||||
# if they gave a list of objects then they must want more
|
||||
# than the object names!
|
||||
$::ATTRLIST="all";
|
||||
} else {
|
||||
# otherwise just get a list of object names
|
||||
$::ATTRLIST="none";
|
||||
}
|
||||
|
||||
#
|
||||
# put together a hash with the list of objects and the associated types
|
||||
|
Loading…
Reference in New Issue
Block a user