#NEWLINE# @ argh_named ( 'wait' ) #NEWLINE# @ arg_full_match #NEWLINE# @ argh . arg ( 'target' , type = str , help = 'target systems/nodes (regexp)' ) #NEWLINE# @ argh . arg ( '--state' , type = str , default = 'running' , help = "target instance state, default: 'running'" ) #NEWLINE# @ expects_obj #NEWLINE# def handle_cloud_wait( self , arg ) : #NEWLINE# #INDENT# 'wait cloud instances to reach a specific running state' #NEWLINE# confman = self . get_confman ( arg . root_dir , reset_cache = False ) #NEWLINE# return self . cloud_op ( confman , arg , False )