mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
more lint fixes
This commit is contained in:
parent
16b70596c0
commit
8963a5e765
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user