#NEWLINE# def sleep_while_creating( self , timeoutSec = 600 ) : #NEWLINE# #INDENT# Util . validate_type ( timeoutSec , 'int' ) #NEWLINE# step = 10 #NEWLINE# while ( 0 < timeoutSec ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . reload ( ) #NEWLINE# #UNINDENT# except saklient . errors . httpexception . HttpException : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# a = self . get_availability ( ) #NEWLINE# if ( a == EAvailability . available ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( a != EAvailability . migrating ) : #NEWLINE# #INDENT# timeoutSec = 0 #NEWLINE# #UNINDENT# timeoutSec -= step #NEWLINE# if ( 0 < timeoutSec ) : #NEWLINE# #INDENT# Util . sleep ( step ) #NEWLINE# #UNINDENT# #UNINDENT# return False