more lint fixes

This commit is contained in:
ror6ax 2014-09-16 11:31:28 +01:00
parent 16b70596c0
commit 8963a5e765

View File

@ -1,15 +1,16 @@
# -*- coding: utf-8 -*-
import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
'''
Device-Mapper Multipath module
CLI Example:
.. code-block:: bash
salt '*' devmap.multipath list
salt '*' devmap.multipath flush mpath1
'''
def multipath(): def multipath():
'''
Device-Mapper Multipath module
CLI Example:
.. code-block:: bash
salt '*' devmap.multipath list
salt '*' devmap.multipath flush mpath1
'''
ret = {} ret = {}
if ret[0] == 'list': if ret[0] == 'list':
cmd = 'multipath -l' cmd = 'multipath -l'
@ -20,4 +21,4 @@ def multipath():
return 'Error: No device to flush has been provided!' return 'Error: No device to flush has been provided!'
else: else:
return 'Error: Unknown option provided!' return 'Error: Unknown option provided!'
return __salt__['cmd.run'](cmd).splitlines() return __salt__['cmd.run'](cmd).splitlines()