mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 10:52:31 +00:00 
			
		
		
		
	Make lsdef -z could display all attribute by default(#5241)
This commit is contained in:
		| @@ -21,13 +21,13 @@ SYNOPSIS | ||||
|  | ||||
| \ **lsdef**\  [\ **-h | -**\ **-help**\ ] [\ **-t**\  \ *object-types*\ ] [\ **-i**\  \ *attr-list*\ ] | ||||
|  | ||||
| \ **lsdef**\  [\ **-V | -**\ **-verbose**\ ] [\ **-l | -**\ **-long**\ ] [\ **-s | -**\ **-short**\ ] [\ **-a | -**\ **-all**\ ] [\ **-S**\ ] | ||||
| [\ **-t**\  \ *object-types*\ ] [\ **-o**\  \ *object-names*\ ] [\ **-z | -**\ **-stanza**\ ] [\ **-i**\  \ *attr-list*\ ] | ||||
| \ **lsdef**\  [\ **-V | -**\ **-verbose**\ ] [\ **-a | -**\ **-all**\ ] [\ **-S**\ ] | ||||
| [\ **-t**\  \ *object-types*\ ] [\ **-o**\  \ *object-names*\ ] [\ **-z | -**\ **-stanza**\ ] [\ [\ **-i**\  \ *attr-list*\] | [\ **-l | -**\ **-long**\ ] | [\ **-s | -**\ **-short**\ ]] | ||||
| [\ **-c | -**\ **-compress**\ ] [\ **-**\ **-osimage**\ ] [\ **-**\ **-nics**\ ] [[\ **-w**\  \ *attr*\ ==\ *val*\ ] | ||||
| [\ **-w**\  \ *attr*\ =~\ *val*\ ] ...] [\ *noderange*\ ] | ||||
|  | ||||
| \ **lsdef**\  [\ **-l | -**\ **-long**\ ] [\ **-a | -**\ **-all**\ ] [\ **-t**\  \ *object-types*\ ] [\ **-z | -**\ **-stanza**\ ] | ||||
| [\ **-i**\  \ *attr-list*\ ] [\ **-**\ **-template**\  [\ *template-object-name*\ ]] | ||||
| \ **lsdef**\  [\ **-a | -**\ **-all**\ ] [\ **-t**\  \ *object-types*\ ] [\ **-z | -**\ **-stanza**\ ] | ||||
| [\ [\ **-i**\  \ *attr-list*\] | [\ **-l | -**\ **-long**\ ] | [\ **-s | -**\ **-short**\ ]] [\ **-**\ **-template**\  [\ *template-object-name*\ ]] | ||||
|  | ||||
|  | ||||
| *********** | ||||
|   | ||||
| @@ -6,13 +6,13 @@ B<lsdef> - Use this command to list xCAT data object definitions. | ||||
|  | ||||
| B<lsdef> [B<-h>|B<--help>] [B<-t> I<object-types>] [B<-i> I<attr-list>] | ||||
|  | ||||
| B<lsdef> [B<-V>|B<--verbose>] [B<-l>|B<--long>] [B<-s>|B<--short>] [B<-a>|B<--all>] [B<-S>] | ||||
| [B<-t> I<object-types>] [B<-o> I<object-names>] [B<-z>|B<--stanza>] [B<-i> I<attr-list>] | ||||
| B<lsdef> [B<-V>|B<--verbose>] [B<-a>|B<--all>] [B<-S>] | ||||
| [B<-t> I<object-types>] [B<-o> I<object-names>] [B<-z>|B<--stanza>] [B<-i> I<attr-list> | [B<-l>|B<--long>] | [B<-s>|B<--short>]] | ||||
| [B<-c>|B<--compress>] [B<--osimage>] [B<--nics>] [[B<-w> I<attr>==I<val>] | ||||
| [B<-w> I<attr>=~I<val>] ...] [I<noderange>] | ||||
|  | ||||
| B<lsdef> [B<-l>|B<--long>] [B<-a>|B<--all>] [B<-t> I<object-types>] [B<-z>|B<--stanza>] | ||||
| [B<-i> I<attr-list>] [B<--template> [I<template-object-name>]] | ||||
| B<lsdef> [B<-a>|B<--all>] [B<-t> I<object-types>] [B<-z>|B<--stanza>] | ||||
| [B<-i> I<attr-list> | [B<-l>|B<--long>] | [B<-s>|B<--short>]] [B<--template> [I<template-object-name>]] | ||||
|  | ||||
| =head1 DESCRIPTION | ||||
|  | ||||
| @@ -99,7 +99,7 @@ Note: if the "val" fields includes spaces or any other characters that will be p | ||||
|  | ||||
| =item B<-z|--stanza> | ||||
|  | ||||
| Display output in stanza format. See the xcatstanzafile man page for details on using xCAT stanza files. | ||||
| Display output in stanza format. See the xcatstanzafile man page for details on using xCAT stanza files. And default is to list complete object definition, use B<-i> to specify the attribute scope. | ||||
|  | ||||
| =back | ||||
|  | ||||
|   | ||||
| @@ -3274,7 +3274,7 @@ sub defls | ||||
|  | ||||
|  | ||||
|     # do we want just the object names or all the attr=val | ||||
|     if ($::opt_l || @::noderange || $::opt_o || $::opt_i || $::opt_template) | ||||
|     if ($::opt_l || @::noderange || $::opt_o || $::opt_i || $::opt_z || $::opt_template) | ||||
|     { | ||||
|  | ||||
|         # assume we want the the details - not just the names | ||||
| @@ -3297,7 +3297,7 @@ sub defls | ||||
|  | ||||
|         # is -i then just get the ones in the list | ||||
|         $::ATTRLIST = $::opt_i; | ||||
|     } elsif (@::noderange || $::opt_o) { | ||||
|     } elsif (@::noderange || $::opt_o || $::opt_z) { | ||||
|  | ||||
|         # if they gave a list of objects then they must want more | ||||
|         # than the object names! | ||||
|   | ||||
		Reference in New Issue
	
	Block a user