mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +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__)
|
||||
|
||||
'''
|
||||
Device-Mapper Multipath module
|
||||
CLI Example:
|
||||
.. code-block:: bash
|
||||
salt '*' devmap.multipath list
|
||||
salt '*' devmap.multipath flush mpath1
|
||||
'''
|
||||
|
||||
|
||||
def multipath():
|
||||
'''
|
||||
Device-Mapper Multipath module
|
||||
CLI Example:
|
||||
.. code-block:: bash
|
||||
salt '*' devmap.multipath list
|
||||
salt '*' devmap.multipath flush mpath1
|
||||
'''
|
||||
ret = {}
|
||||
if ret[0] == 'list':
|
||||
cmd = 'multipath -l'
|
||||
@ -20,4 +21,4 @@ def multipath():
|
||||
return 'Error: No device to flush has been provided!'
|
||||
else:
|
||||
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