Skip to content

Commit

Permalink
removed config_type parameter
Browse files Browse the repository at this point in the history
Signed-off-by: aadityasinha-dotcom <[email protected]>
  • Loading branch information
aadityasinha-dotcom committed Sep 13, 2023
1 parent 6917e60 commit fc5aa3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/core/zowe/core_for_zowe_sdk/config_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ def location(self, dirname: str) -> None:

def init_from_file(
self,
config_type: str,
validate_schema: Optional[bool] = True,
) -> None:
"""
Expand Down Expand Up @@ -209,7 +208,6 @@ def get_profile(
self,
profile_name: Optional[str] = None,
profile_type: Optional[str] = None,
config_type: Optional[str] = None,
validate_schema: Optional[bool] = True,
) -> Profile:
"""
Expand All @@ -220,7 +218,7 @@ def get_profile(
Returns a namedtuple called Profile
"""
if self.profiles is None:
self.init_from_file(config_type, validate_schema)
self.init_from_file(validate_schema)

if profile_name is None and profile_type is None:
raise ProfileNotFound(
Expand Down
5 changes: 2 additions & 3 deletions src/core/zowe/core_for_zowe_sdk/profile_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ def get_profile(
cfg: ConfigFile,
profile_name: Optional[str],
profile_type: Optional[str],
config_type: str,
validate_schema: Optional[bool] = True,
) -> Profile:
"""
Expand All @@ -176,7 +175,7 @@ def get_profile(
cfg_profile = Profile()
try:
cfg_profile = cfg.get_profile(
profile_name=profile_name, profile_type=profile_type, config_type=config_type, validate_schema=validate_schema
profile_name=profile_name, profile_type=profile_type, validate_schema=validate_schema
)
except jsonschema.exceptions.ValidationError as exc:
raise jsonschema.exceptions.ValidationError(
Expand Down Expand Up @@ -285,7 +284,7 @@ def load(

for i, (config_type, cfg) in enumerate(config_layers.items()):
profile_loaded = self.get_profile(
cfg, profile_name, profile_type, config_type, validate_schema
cfg, profile_name, profile_type, validate_schema
)
# TODO Why don't user and password show up here for Project User Config?
# Probably need to update load_profile_properties method in config_file.py
Expand Down

0 comments on commit fc5aa3a

Please sign in to comment.