Skip to content

Commit af64eaf

Browse files
authored
Avoid creating k8s secrets script when discovering with no target (#913)
1 parent 75cc0bb commit af64eaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/python/wlsdeploy/util/target_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def generate_script_for_secrets(self):
114114
Determine if it needs to generate shell script for creating secrets.
115115
:return: True if it is not equal to json
116116
"""
117-
return not self.get_credentials_output_method() in ['json']
118-
117+
# output method is None for discover with no target
118+
return not self.get_credentials_output_method() in [None, 'json']
119119

120120
def generate_json_for_secrets(self):
121121
"""

0 commit comments

Comments
 (0)