#NEWLINE# @ click . argument ( 'group' , type = types . Related ( 'group' ) ) #NEWLINE# @ click . option ( '--monitor' , is_flag = True , default = False , help = 'If sent, immediately calls `monitor` on the newly launched job rather than exiting with a success.' ) #NEWLINE# @ click . option ( '--timeout' , required = False , type = int , help = 'If provided with --monitor, this command (not the job) will time out after the given number of seconds. Does nothing if --monitor is not sent.' ) #NEWLINE# @ resources . command ( use_fields_as_options = False , no_args_is_help = True ) #NEWLINE# def sync( self , group , monitor = False , timeout = None , **kwargs ) : #NEWLINE# #INDENT# "Update the given group's inventory source." #NEWLINE# isrc = get_resource ( 'inventory_source' ) #NEWLINE# isid = self . _get_inventory_source_id ( group ) #NEWLINE# return isrc . update ( isid , monitor = isrc , timeout = timeout , ** kwargs )