mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-05-05 16:49:08 +00:00
fix: remove only_if mgt=kvm guard from vm table attributes
Five vm attributes (vmhost, vmothersetting, vmmemory, vmcpus, vmnics) had an only_if => 'mgt=kvm' guard in Schema.pm that silently hid them from lsdef output unless mgt=kvm was set. The other 16 vm attributes had no such guard. This inconsistency caused the documented regex example in "Groups and Regular Expressions in Tables" to produce incomplete output. Fixes: xcat2/xcat-core#3006
This commit is contained in:
@@ -2717,7 +2717,6 @@ my @nodeattrs = (
|
||||
access_tabentry => 'vm.node=attr:node',
|
||||
},
|
||||
{ attr_name => 'vmhost',
|
||||
only_if => 'mgt=kvm',
|
||||
tabentry => 'vm.host',
|
||||
access_tabentry => 'vm.node=attr:node',
|
||||
},
|
||||
@@ -2734,7 +2733,6 @@ my @nodeattrs = (
|
||||
access_tabentry => 'vm.node=attr:node',
|
||||
},
|
||||
{ attr_name => 'vmothersetting',
|
||||
only_if => 'mgt=kvm',
|
||||
tabentry => 'vm.othersettings',
|
||||
access_tabentry => 'vm.node=attr:node',
|
||||
},
|
||||
@@ -2755,17 +2753,14 @@ my @nodeattrs = (
|
||||
access_tabentry => 'vm.node=attr:node',
|
||||
},
|
||||
{ attr_name => 'vmmemory',
|
||||
only_if => 'mgt=kvm',
|
||||
tabentry => 'vm.memory',
|
||||
access_tabentry => 'vm.node=attr:node',
|
||||
},
|
||||
{ attr_name => 'vmcpus',
|
||||
only_if => 'mgt=kvm',
|
||||
tabentry => 'vm.cpus',
|
||||
access_tabentry => 'vm.node=attr:node',
|
||||
},
|
||||
{ attr_name => 'vmnics',
|
||||
only_if => 'mgt=kvm',
|
||||
tabentry => 'vm.nics',
|
||||
access_tabentry => 'vm.node=attr:node',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user