Tony Asleson
2014-06-23 20:50:52 UTC
Signed-off-by: Tony Asleson <***@redhat.com>
---
python_binding/lsm/_data.py | 18 +++++++++---------
python_binding/lsm/_iplugin.py | 6 ++++--
tools/lsmcli/cmdline.py | 7 ++++---
3 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/python_binding/lsm/_data.py b/python_binding/lsm/_data.py
index 3d20557..8f9e94f 100644
--- a/python_binding/lsm/_data.py
+++ b/python_binding/lsm/_data.py
@@ -573,15 +573,15 @@ class Pool(IData):
def __init__(self, _id, _name, _element_type, _total_space, _free_space,
_status, _status_info, _system_id, _plugin_data=None):
- self._id = _id # Identifier
- self._name = _name # Human recognisable name
- self._element_type = _element_type # What pool can be used to create
- self._total_space = _total_space # Total size
- self._free_space = _free_space # Free space available
- self._status = _status # Status of pool.
- self._status_info = _status_info # Additional status text of pool
- self._system_id = _system_id # System id this pool belongs
- self._plugin_data = _plugin_data # Plugin private data
+ self._id = _id # Identifier
+ self._name = _name # Human recognisable name
+ self._element_type = _element_type # What pool can be used to create
+ self._total_space = _total_space # Total size
+ self._free_space = _free_space # Free space available
+ self._status = _status # Status of pool.
+ self._status_info = _status_info # Additional status text of pool
+ self._system_id = _system_id # System id this pool belongs
+ self._plugin_data = _plugin_data # Plugin private data
@default_property('id', doc="Unique identifier")
diff --git a/python_binding/lsm/_iplugin.py b/python_binding/lsm/_iplugin.py
index a1c59b5..da8e8d4 100644
--- a/python_binding/lsm/_iplugin.py
+++ b/python_binding/lsm/_iplugin.py
@@ -100,7 +100,8 @@ class IPlugin(object):
"""
Returns the description and version for plug-in, raises LsmError
- Note: Make sure plugin can handle this call before plugin_register is called.
+ Note: Make sure plugin can handle this call before plugin_register is
+ called.
"""
pass
@@ -351,6 +352,7 @@ class IStorageAreaNetwork(IPlugin):
def target_ports(self, search_key=None, search_value=None, flags=0):
raise LsmError(ErrorNumber.NO_SUPPORT, "Not supported")
+
class INetworkAttachedStorage(IPlugin):
"""
Class the represents Network attached storage (Common NFS/CIFS operations)
@@ -451,7 +453,7 @@ class INetworkAttachedStorage(IPlugin):
raise LsmError(ErrorNumber.NO_SUPPORT, "Not supported")
def fs_snapshot_restore(self, fs, snapshot, files, restore_files,
- all_files=False, flags=0):
+ all_files=False, flags=0):
"""
WARNING: Destructive!
diff --git a/tools/lsmcli/cmdline.py b/tools/lsmcli/cmdline.py
index 055ba65..abdac8b 100644
--- a/tools/lsmcli/cmdline.py
+++ b/tools/lsmcli/cmdline.py
@@ -101,7 +101,7 @@ def _get_item(l, the_id, friendly_name='item', raise_error=True):
list_choices = ['VOLUMES', 'POOLS', 'FS', 'SNAPSHOTS',
'EXPORTS', "NFS_CLIENT_AUTH", 'ACCESS_GROUPS',
- 'SYSTEMS', 'DISKS', 'PLUGINS', 'TARGET_PORTS',]
+ 'SYSTEMS', 'DISKS', 'PLUGINS', 'TARGET_PORTS']
init_types = ('WWPN', 'WWNN', 'ISCSI', 'HOSTNAME', 'SAS')
init_id_help = "Access Group Initiator type: " + \
@@ -915,7 +915,7 @@ class CmdLine:
search_key = 'id'
if search_key == 'volume_id':
lsm_vol = _get_item(self.c.volumes(), args.vol,
- "Volume ID", raise_error=False)
+ "Volume ID", raise_error=False)
if lsm_vol:
return self.display_data(
self.c.access_groups_granted_to_volume(lsm_vol))
@@ -1051,7 +1051,8 @@ class CmdLine:
ss = None
self._wait_for_it(
- "fs_file_clone", self.c.fs_file_clone(fs, args.src, args.dst, ss), None)
+ "fs_file_clone", self.c.fs_file_clone(fs, args.src, args.dst, ss),
+ None)
##Converts a size parameter into the appropriate number of bytes
# @param s Size to convert to bytes handles B, K, M, G, T, P postfix
---
python_binding/lsm/_data.py | 18 +++++++++---------
python_binding/lsm/_iplugin.py | 6 ++++--
tools/lsmcli/cmdline.py | 7 ++++---
3 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/python_binding/lsm/_data.py b/python_binding/lsm/_data.py
index 3d20557..8f9e94f 100644
--- a/python_binding/lsm/_data.py
+++ b/python_binding/lsm/_data.py
@@ -573,15 +573,15 @@ class Pool(IData):
def __init__(self, _id, _name, _element_type, _total_space, _free_space,
_status, _status_info, _system_id, _plugin_data=None):
- self._id = _id # Identifier
- self._name = _name # Human recognisable name
- self._element_type = _element_type # What pool can be used to create
- self._total_space = _total_space # Total size
- self._free_space = _free_space # Free space available
- self._status = _status # Status of pool.
- self._status_info = _status_info # Additional status text of pool
- self._system_id = _system_id # System id this pool belongs
- self._plugin_data = _plugin_data # Plugin private data
+ self._id = _id # Identifier
+ self._name = _name # Human recognisable name
+ self._element_type = _element_type # What pool can be used to create
+ self._total_space = _total_space # Total size
+ self._free_space = _free_space # Free space available
+ self._status = _status # Status of pool.
+ self._status_info = _status_info # Additional status text of pool
+ self._system_id = _system_id # System id this pool belongs
+ self._plugin_data = _plugin_data # Plugin private data
@default_property('id', doc="Unique identifier")
diff --git a/python_binding/lsm/_iplugin.py b/python_binding/lsm/_iplugin.py
index a1c59b5..da8e8d4 100644
--- a/python_binding/lsm/_iplugin.py
+++ b/python_binding/lsm/_iplugin.py
@@ -100,7 +100,8 @@ class IPlugin(object):
"""
Returns the description and version for plug-in, raises LsmError
- Note: Make sure plugin can handle this call before plugin_register is called.
+ Note: Make sure plugin can handle this call before plugin_register is
+ called.
"""
pass
@@ -351,6 +352,7 @@ class IStorageAreaNetwork(IPlugin):
def target_ports(self, search_key=None, search_value=None, flags=0):
raise LsmError(ErrorNumber.NO_SUPPORT, "Not supported")
+
class INetworkAttachedStorage(IPlugin):
"""
Class the represents Network attached storage (Common NFS/CIFS operations)
@@ -451,7 +453,7 @@ class INetworkAttachedStorage(IPlugin):
raise LsmError(ErrorNumber.NO_SUPPORT, "Not supported")
def fs_snapshot_restore(self, fs, snapshot, files, restore_files,
- all_files=False, flags=0):
+ all_files=False, flags=0):
"""
WARNING: Destructive!
diff --git a/tools/lsmcli/cmdline.py b/tools/lsmcli/cmdline.py
index 055ba65..abdac8b 100644
--- a/tools/lsmcli/cmdline.py
+++ b/tools/lsmcli/cmdline.py
@@ -101,7 +101,7 @@ def _get_item(l, the_id, friendly_name='item', raise_error=True):
list_choices = ['VOLUMES', 'POOLS', 'FS', 'SNAPSHOTS',
'EXPORTS', "NFS_CLIENT_AUTH", 'ACCESS_GROUPS',
- 'SYSTEMS', 'DISKS', 'PLUGINS', 'TARGET_PORTS',]
+ 'SYSTEMS', 'DISKS', 'PLUGINS', 'TARGET_PORTS']
init_types = ('WWPN', 'WWNN', 'ISCSI', 'HOSTNAME', 'SAS')
init_id_help = "Access Group Initiator type: " + \
@@ -915,7 +915,7 @@ class CmdLine:
search_key = 'id'
if search_key == 'volume_id':
lsm_vol = _get_item(self.c.volumes(), args.vol,
- "Volume ID", raise_error=False)
+ "Volume ID", raise_error=False)
if lsm_vol:
return self.display_data(
self.c.access_groups_granted_to_volume(lsm_vol))
@@ -1051,7 +1051,8 @@ class CmdLine:
ss = None
self._wait_for_it(
- "fs_file_clone", self.c.fs_file_clone(fs, args.src, args.dst, ss), None)
+ "fs_file_clone", self.c.fs_file_clone(fs, args.src, args.dst, ss),
+ None)
##Converts a size parameter into the appropriate number of bytes
# @param s Size to convert to bytes handles B, K, M, G, T, P postfix
--
1.8.2.1
1.8.2.1