#NEWLINE# def _process_images( zvm_images ) : #NEWLINE# #INDENT# "\n    Process a list of the --zvm-image arguments and split them into the\n    `path,mount_point,access_type` components. This returns a generator of\n    3-tuples.\n\n    `mount_point` and `access_type` are optional and will default to `/` and\n    `ro`, respectively.\n\n    Example:\n\n    >>> list(_process_images(['/home/user1/foo.tar',\n    ...                       '/home/user1/bar.tar,/var/lib',\n    ...                       '/home/user1/baz.tar,/usr/lib,rw']))\n    [('/home/user1/foo.tar', '/', 'ro'), ('/home/user1/bar.tar', '/var/lib', 'ro'), ('/home/user1/baz.tar', '/usr/lib', 'rw')]\n\n    " #NEWLINE# for image in zvm_images : #NEWLINE# #INDENT# image_split = image . split ( ',' ) #NEWLINE# mount_dir = _DEFAULT_MOUNT_DIR #NEWLINE# access_type = _DEFAULT_MOUNT_ACCESS #NEWLINE# if ( len ( image_split ) == 1 ) : #NEWLINE# #INDENT# path = image_split [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( image_split ) == 2 ) : #NEWLINE# #INDENT# ( path , mount_dir ) = image_split #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( image_split ) == 3 ) : #NEWLINE# #INDENT# ( path , mount_dir , access_type ) = image_split #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# ( yield ( path , mount_dir , access_type ) )