try: variables = variable_helper.load_variables(variable_file) except VariableException, ve: __logger.severe('WLSDPLY-04207', _program_name, variable_file, ve.getLocalizedMessage(), error=ve, class_name=_class_name, method_name=_method_name) return CommandLineArgUtil.PROG_ERROR_EXIT_CODE try: passphrase = model_context.get_encryption_passphrase() model_change_count, variable_change_count = \ encryption_utils.encrypt_model_dictionary(passphrase, model, variables) except EncryptionException, ee: __logger.severe('WLSDPLY-04208', _program_name, ee.getLocalizedMessage(), error=ee, class_name=_class_name, method_name=_method_name) return CommandLineArgUtil.PROG_ERROR_EXIT_CODE if variable_change_count > 0: try: variable_helper.write_variables(_program_name, variables, variable_file) __logger.info('WLSDPLY-04209', _program_name,
__logger.severe('WLSDPLY-04207', _program_name, variable_file, ve.getLocalizedMessage(), error=ve, class_name=_class_name, method_name=_method_name) return CommandLineArgUtil.PROG_ERROR_EXIT_CODE aliases = Aliases(model_context, wlst_mode=WlstModes.OFFLINE) alias_helper = AliasHelper(aliases, __logger, ExceptionType.ENCRYPTION) try: passphrase = model_context.get_encryption_passphrase() model_change_count, variable_change_count = \ encryption_utils.encrypt_model_dictionary(passphrase, model, alias_helper, variables) except EncryptionException, ee: __logger.severe('WLSDPLY-04208', _program_name, ee.getLocalizedMessage(), error=ee, class_name=_class_name, method_name=_method_name) return CommandLineArgUtil.PROG_ERROR_EXIT_CODE if variable_change_count > 0: try: variable_helper.write_variables(_program_name, variables, variable_file) __logger.info('WLSDPLY-04209', _program_name,