diff --git a/src/core/zowe/core_for_zowe_sdk/config_file.py b/src/core/zowe/core_for_zowe_sdk/config_file.py index dc4916cf..97c8c29d 100644 --- a/src/core/zowe/core_for_zowe_sdk/config_file.py +++ b/src/core/zowe/core_for_zowe_sdk/config_file.py @@ -113,7 +113,6 @@ def location(self, dirname: str) -> None: def init_from_file( self, - config_type: str, validate_schema: Optional[bool] = True, ) -> None: """ @@ -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: """ @@ -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( diff --git a/src/core/zowe/core_for_zowe_sdk/profile_manager.py b/src/core/zowe/core_for_zowe_sdk/profile_manager.py index 69fcfed8..72a27f6f 100644 --- a/src/core/zowe/core_for_zowe_sdk/profile_manager.py +++ b/src/core/zowe/core_for_zowe_sdk/profile_manager.py @@ -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: """ @@ -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( @@ -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