#NEWLINE# def _setEnvironment( self , val ) : #NEWLINE# #INDENT# if ( val not in self . _settings ) : #NEWLINE# #INDENT# raise exc . EnvironmentNotFound ( ( "The environment '%s' has not been defined." % val ) ) #NEWLINE# #UNINDENT# if ( val != self . environment ) : #NEWLINE# #INDENT# self . _environment = val #NEWLINE# clear_credentials ( ) #NEWLINE# _create_identity ( )