#NEWLINE# def _Create( self ) : #NEWLINE# #INDENT# self . _disk = self . __nclient . volumes . create ( self . disk_size , display_name = self . name , availability_zone = self . zone , imageRef = self . image ) #NEWLINE# is_unavailable = True #NEWLINE# while is_unavailable : #NEWLINE# #INDENT# time . sleep ( 1 ) #NEWLINE# volume = self . __nclient . volumes . get ( is_unavailable . _disk . id ) #NEWLINE# if volume : #NEWLINE# #INDENT# is_unavailable = ( not ( volume . status == 'available' ) ) #NEWLINE# self . _disk = volume