2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Reorder core resource list in alphabetical order

Clean up ordering to be in (roughly) alphabetical order
so it's a tad easier to follow.
This commit is contained in:
Jarrod Johnson 2015-05-29 11:17:44 -04:00
parent 6ab1ae0c38
commit 7b02954da8

View File

@ -108,6 +108,16 @@ class PluginCollection(object):
# _ prefix indicates internal use (e.g. special console scheme) and should not
# be enumerated in any collection
noderesources = {
'attributes': {
'all': PluginRoute({'handler': 'attributes'}),
'current': PluginRoute({'handler': 'attributes'}),
},
'boot': {
'nextdevice': PluginRoute({
'pluginattrs': ['hardwaremanagement.method'],
'default': 'ipmi',
}),
},
'_console': {
'session': PluginRoute({
'pluginattrs': ['console.method'],
@ -125,12 +135,6 @@ noderesources = {
})
}
},
'power': {
'state': PluginRoute({
'pluginattrs': ['hardwaremanagement.method'],
'default': 'ipmi',
}),
},
'health': {
'hardware': PluginRoute({
'pluginattrs': ['hardwaremanagement.method'],
@ -141,16 +145,6 @@ noderesources = {
'pluginattrs': ['hardwaremanagement.method'],
'default': 'ipmi',
}),
'boot': {
'nextdevice': PluginRoute({
'pluginattrs': ['hardwaremanagement.method'],
'default': 'ipmi',
}),
},
'attributes': {
'all': PluginRoute({'handler': 'attributes'}),
'current': PluginRoute({'handler': 'attributes'}),
},
'inventory': {
'hardware': {
'all': PluginCollection({
@ -159,6 +153,12 @@ noderesources = {
}),
},
},
'power': {
'state': PluginRoute({
'pluginattrs': ['hardwaremanagement.method'],
'default': 'ipmi',
}),
},
'sensors': {
'hardware': {
'all': PluginCollection({