#NEWLINE# def generate_jaas_config( args ) : #NEWLINE# #INDENT# if ( not deploy_utils . is_security_enabled ( args ) ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# config_dict = args . zookeeper_config . configuration . generated_files [ 'jaas-server.conf' ] #NEWLINE# for ( key , value ) in config_dict . items ( ) [ 1 : ] : #NEWLINE# #INDENT# if ( ( value != 'true' ) and ( value != 'false' ) and ( value . find ( '"' ) == ( - 1 ) ) ) : #NEWLINE# #INDENT# config_dict [ key ] = ( ( '"' + value ) + '"' ) #NEWLINE# #UNINDENT# #UNINDENT# header_line = config_dict [ 'headerLine' ] #NEWLINE# return ( 'Server {\n  %s\n%s;\n};' % ( header_line , '\n' . join ( [ ( '  %s=%s' % ( key , value ) ) for ( key , value ) in config_dict . iteritems ( ) if ( args != config_dict . keys ( ) [ 0 ] ) ] ) ) )