|
10 | 10 | from oracle.weblogic.deploy.util import WLSDeployArchiveIOException |
11 | 11 | from oracle.weblogic.deploy.util import FileUtils |
12 | 12 |
|
| 13 | +from wlsdeploy.aliases import alias_constants |
13 | 14 | from wlsdeploy.aliases import model_constants |
14 | 15 | from wlsdeploy.aliases.wlst_modes import WlstModes |
15 | 16 | from wlsdeploy.exception import exception_helper |
@@ -40,13 +41,18 @@ def discover(self): |
40 | 41 | """ |
41 | 42 | _method_name = 'discover' |
42 | 43 | _logger.entering(class_name=_class_name, method_name=_method_name) |
| 44 | + self.add_admin_credentials() |
43 | 45 | model_top_folder_name, result = self.get_domain_libs() |
44 | 46 | discoverer.add_to_model_if_not_empty(self._dictionary, model_top_folder_name, result) |
45 | 47 | model_top_folder_name, result = self.get_user_env_scripts() |
46 | 48 | discoverer.add_to_model_if_not_empty(self._dictionary, model_top_folder_name, result) |
47 | 49 | _logger.exiting(class_name=_class_name, method_name=_method_name) |
48 | 50 | return self._dictionary |
49 | 51 |
|
| 52 | + def add_admin_credentials(self): |
| 53 | + self._dictionary[model_constants.ADMIN_USERNAME] = alias_constants.PASSWORD_TOKEN |
| 54 | + self._dictionary[model_constants.ADMIN_PASSWORD] = alias_constants.PASSWORD_TOKEN |
| 55 | + |
50 | 56 | def get_domain_libs(self): |
51 | 57 | """ |
52 | 58 | Add the java archive files stored in the domain lib into the archive file. Add the information for each |
|
0 commit comments