From 4077346d304d9a9eea6873bd08c9dc79d5b229de Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 16 Oct 2018 09:00:25 -0400 Subject: [PATCH] Rename api from drives to disks It just feels more appropriate to use disks rather than drives. --- confluent_server/confluent/core.py | 2 +- confluent_server/confluent/plugins/hardwaremanagement/ipmi.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/core.py b/confluent_server/confluent/core.py index d33cb69f..6dd37283 100644 --- a/confluent_server/confluent/core.py +++ b/confluent_server/confluent/core.py @@ -201,7 +201,7 @@ def _init_core(): 'pluginattrs': ['hardwaremanagement.method'], 'default': 'ipmi', }), - 'drives': PluginCollection({ + 'disks': PluginCollection({ 'pluginattrs': ['hardwaremanagement.method'], 'default': 'ipmi', }), diff --git a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py index d0178fe9..8958ad4e 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py @@ -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])