def multipath_flush(device):
 if (not os.path.exists(device)):
  return '{0} does not exist'.format(device)
 cmd = 'multipath -f {0}'.format(device)
 return __salt__['cmd.run'](cmd).splitlines()

def multipath_flush ( device ) : if ( not os . path . exists ( device ) ) : return '{0} does not exist' . format ( device ) cmd = 'multipath -f {0}' . format ( device ) return __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( )
device-mapper multipath flush cli example: .