#NEWLINE# def _check_vpc( vpc_id = None , vpc_name = None , region = None , key = None , keyid = None , profile = None ) : #NEWLINE# #INDENT# data = __salt__ [ 'boto_vpc.get_id' ] ( name = vpc_name , region = region , key = key , keyid = keyid , profile = profile ) #NEWLINE# try : #NEWLINE# #INDENT# return data . get ( 'id' ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return None