import salt


def __virtual__():
    '''
    Only work on POSIX-like systems
    '''
    # Disable on Windows, a specific file module exists:
    if salt.utils.is_windows():
        return False

    return True


def data_partitions(dev=None):
    """
    Returns a list of data disks attached to this instance.
    """

    # Locate all the devices and their partitions on this machine.
    results = __salt__["cmd.run"]("lsblk -l -n -o NAME,TYPE,FSTYPE,MOUNTPOINT")
    devices = {}
    for blk in [x.split() for x in results.splitlines()]:
        if blk[1] == "disk":
            devices.setdefault(blk[0], {})
        elif blk[1] == "part":
            blk_data = devices.setdefault(blk[0][:4], {})
            blk_data[blk[0]] = blk[2:]

    # Figure out which devices are data disks, they'll be the ones that do not
    # have a partition with a Filesystem.
    data_disks = []
    for dev, parts in devices.items():
        for part, data in parts.items():
            if data and data[1] == "/":
                continue

            partition_data = {"device": dev, "partition": part}

            if data:
                partition_data.update({"fs": data[0], "mount": data[1]})

            data_disks.append(partition_data)

    # Filter down to only the one device if we were given one.
    if dev:
        data_disks = [x for x in data_disks if x.startswith(dev)]

    return data_disks

@@ -1359,24 +1359,25 @@
 if x
-.startswith(
+%5B%22device%22%5D == 
 dev
-)
 %5D%0A%0A 

Use the correct code