#NEWLINE# def create_appscale_user( password , uaserver ) : #NEWLINE# #INDENT# ' Creates the user account with the email address and password provided. ' #NEWLINE# does_user_exist = uaserver . does_user_exist ( hermes_constants . USER_EMAIL , appscale_info . get_secret ( ) ) #NEWLINE# if ( does_user_exist == 'true' ) : #NEWLINE# #INDENT# logging . debug ( 'User {0} already exists, so not creating it again.' . format ( hermes_constants . USER_EMAIL ) ) #NEWLINE# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( uaserver . commit_new_user ( hermes_constants . USER_EMAIL , password , hermes_constants . ACCOUNT_TYPE , appscale_info . get_secret ( ) ) == 'true' ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logging . error ( 'Error while creating an Appscale user.' ) #NEWLINE# return False