mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-15 20:27:50 +00:00
Rename api from drives to disks
It just feels more appropriate to use disks rather than drives.
This commit is contained in:
parent
8a4bf22a7e
commit
4077346d30
@ -201,7 +201,7 @@ def _init_core():
|
||||
'pluginattrs': ['hardwaremanagement.method'],
|
||||
'default': 'ipmi',
|
||||
}),
|
||||
'drives': PluginCollection({
|
||||
'disks': PluginCollection({
|
||||
'pluginattrs': ['hardwaremanagement.method'],
|
||||
'default': 'ipmi',
|
||||
}),
|
||||
|
@ -936,7 +936,7 @@ class IpmiHandler(object):
|
||||
if self.element[-1] == '':
|
||||
self.element = self.element[:-1]
|
||||
storelem = self.element[2:]
|
||||
if storelem[0] == 'drives':
|
||||
if storelem[0] == 'disks':
|
||||
if len(storelem) == 1:
|
||||
return self.list_disks()
|
||||
return self.show_disk(storelem[1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user