|
1 | 1 | """
|
2 |
| -Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
| 2 | +Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | The Universal Permissive License (UPL), Version 1.0
|
4 | 4 | """
|
5 | 5 | import javaos as os
|
@@ -143,7 +143,7 @@ def _get_attributes_for_current_location_online(self, location):
|
143 | 143 | path = self._alias_helper.get_wlst_attributes_path(location)
|
144 | 144 | try:
|
145 | 145 | lsa_attributes = wlst_helper.lsa(path)
|
146 |
| - mbi_attributes = _get_mbi_attribute_list() |
| 146 | + mbi_attributes = _get_mbi_attribute_list(path) |
147 | 147 | if mbi_attributes:
|
148 | 148 | for lsa_attribute_name in lsa_attributes:
|
149 | 149 | if lsa_attribute_name in lsa_attributes and lsa_attribute_name not in mbi_attributes:
|
@@ -659,9 +659,9 @@ def convert_to_absolute_path(relative_to, file_name):
|
659 | 659 | return file_name
|
660 | 660 |
|
661 | 661 |
|
662 |
| -def _get_mbi_attribute_list(): |
| 662 | +def _get_mbi_attribute_list(path): |
663 | 663 | attribute_list = []
|
664 |
| - for mbean_attribute_info in wlst_helper.get_mbi().getAttributes(): |
| 664 | + for mbean_attribute_info in wlst_helper.get_mbi(path).getAttributes(): |
665 | 665 | if _is_attribute(mbean_attribute_info):
|
666 | 666 | attribute_list.append(mbean_attribute_info.getName())
|
667 | 667 | return attribute_list
|
@@ -705,7 +705,7 @@ def _massage_online_folders(lsc_folders):
|
705 | 705 | location = wlst_helper.get_pwd()
|
706 | 706 | folder_list = []
|
707 | 707 | mbi_folder_list = []
|
708 |
| - for mbean_attribute_info in wlst_helper.get_mbi().getAttributes(): |
| 708 | + for mbean_attribute_info in wlst_helper.get_mbi(location).getAttributes(): |
709 | 709 | if _is_containment(mbean_attribute_info):
|
710 | 710 | mbi_folder_list.append(mbean_attribute_info.getName())
|
711 | 711 | for lsc_folder in lsc_folders:
|
|
0 commit comments