#NEWLINE# def probe( * devices ) : #NEWLINE# #INDENT# "\n    Ask the kernel to update its local partition data. When no args are\n    specified all block devices are tried.\n\n    Caution: Generally only works on devices with no mounted partitions and\n    may take a long time to return if specified devices are in use.\n\n    CLI Examples:\n\n    .. code-block:: bash\n\n        salt '*' partition.probe\n        salt '*' partition.probe /dev/sda\n        salt '*' partition.probe /dev/sda /dev/sdb\n    " #NEWLINE# for device in devices : #NEWLINE# #INDENT# _validate_device ( device ) #NEWLINE# #UNINDENT# cmd = 'partprobe -- {0}' . format ( ' ' . join ( devices ) ) #NEWLINE# out = __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) #NEWLINE# return out