Skip to content

Commit e5354cd

Browse files
wszczurekrakillen
authored andcommitted
Fix for issue #345 - Imported SAF_AGENT from model_constants and extended __find_target method by reusing include_jms condition (#346)
Signed-off-by: Wojciech Szczurek <[email protected]>
1 parent b40a757 commit e5354cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/python/wlsdeploy/tool/util/attribute_setter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
from wlsdeploy.aliases.model_constants import RESOURCE_MANAGER
5656
from wlsdeploy.aliases.model_constants import RESPONSE_TIME_REQUEST_CLASS
5757
from wlsdeploy.aliases.model_constants import REST_NOTIFICATION
58+
from wlsdeploy.aliases.model_constants import SAF_AGENT
5859
from wlsdeploy.aliases.model_constants import SAF_IMPORTED_DESTINATION
5960
from wlsdeploy.aliases.model_constants import SAF_QUEUE
6061
from wlsdeploy.aliases.model_constants import SAF_TOPIC
@@ -750,6 +751,9 @@ def __find_target(self, target_name, location, include_jms=False):
750751
mbean = self.__find_in_resource_group_or_domain(location, JMS_SERVER, target_name)
751752
if mbean is not None:
752753
return mbean
754+
mbean = self.__find_in_resource_group_or_domain(location, SAF_AGENT, target_name)
755+
if mbean is not None:
756+
return mbean
753757

754758
ex = exception_helper.create_exception(self.__exception_type, 'WLSDPLY-19200', target_name)
755759
self.__logger.throwing(class_name=self._class_name, method_name=method_name, error=ex)

0 commit comments

Comments
 (0)