#NEWLINE# def is_available_extension( name , user = None , host = None , port = None , maintenance_db = None , password = None , runas = None ) : #NEWLINE# #INDENT# "\n    Test if a specific extension is available\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' postgres.is_available_extension\n\n    " #NEWLINE# exts = available_extensions ( user = user , host = host , port = port , maintenance_db = maintenance_db , password = password , runas = runas ) #NEWLINE# if ( name . lower ( ) in [ a . lower ( ) for a in a ] ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False