From f5c9793b122f2b78e2fe6e046ec38b1b0a10f425 Mon Sep 17 00:00:00 2001
From: Thibault VINCENT <thibault.vincent@smartjog.com>
Date: Wed, 22 Dec 2010 15:38:58 +0100
Subject: [PATCH] storage: fix naming

---
 ccnode/interface.py      | 6 +++---
 ccnode/libvirtwrapper.py | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ccnode/interface.py b/ccnode/interface.py
index f783e0f..6f8f1b9 100644
--- a/ccnode/interface.py
+++ b/ccnode/interface.py
@@ -252,7 +252,7 @@ class HVStorage(object):
         :type pool: libvirt.`virStoragePool`
         '''
 
-    def get_pool_total_space(self, pool):
+    def get_pool_space_total(self, pool):
         '''
         Returns the storage capacity of this pool in bytes
         
@@ -261,7 +261,7 @@ class HVStorage(object):
         :return: :class:`int` of capacity in bytes
         '''
         
-    def get_pool_available_space(self, pool):
+    def get_pool_space_available(self, pool):
         '''
         Returns available space of this storage pool in bytes
         
@@ -270,7 +270,7 @@ class HVStorage(object):
         :return: :class:`int` of available free space in bytes
         '''
         
-    def get_pool_used_space(self, pool):
+    def get_pool_space_used(self, pool):
         '''
         Returns current storage pool usage in bytes
         
diff --git a/ccnode/libvirtwrapper.py b/ccnode/libvirtwrapper.py
index a1f8a07..1303385 100644
--- a/ccnode/libvirtwrapper.py
+++ b/ccnode/libvirtwrapper.py
@@ -444,7 +444,7 @@ class LibvirtHVStorage(HVStorage):
         except libvirt.libvirtError as e:
             raise StorageError("Can't get pool state (%s)" % e)
     
-    def get_pool_total_space(self, pool):
+    def get_pool_space_total(self, pool):
         '''
         Returns the storage capacity of this pool in bytes
         
@@ -457,7 +457,7 @@ class LibvirtHVStorage(HVStorage):
         except libvirt.libvirtError as e:
             raise StorageError("Can't get pool informations (%s)" % e)
     
-    def get_pool_available_space(self, pool):
+    def get_pool_space_available(self, pool):
         '''
         Returns available space of this storage pool in bytes
         
@@ -470,7 +470,7 @@ class LibvirtHVStorage(HVStorage):
         except libvirt.libvirtError as e:
             raise StorageError("Can't get pool informations (%s)" % e)
     
-    def get_pool_used_space(self, pool):
+    def get_pool_space_used(self, pool):
         '''
         Returns current storage pool usage in bytes
         
-- 
GitLab