2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 12:17:47 +00:00

Rename api from drives to disks

It just feels more appropriate to use disks rather than drives.
This commit is contained in:
Jarrod Johnson 2018-10-16 09:00:25 -04:00
parent 8a4bf22a7e
commit 4077346d30
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ def _init_core():
'pluginattrs': ['hardwaremanagement.method'],
'default': 'ipmi',
}),
'drives': PluginCollection({
'disks': PluginCollection({
'pluginattrs': ['hardwaremanagement.method'],
'default': 'ipmi',
}),

View File

@ -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])