Skip to content

Commit bfdc99a

Browse files
committed
fix(gooddata-pipelines): fix create_from_profile constructor
1 parent e907728 commit bfdc99a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gooddata-pipelines/gooddata_pipelines/provisioning/provisioning.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def create_from_profile(
5050
) -> TProvisioning:
5151
"""Creates a provisioner instance using a GoodData profile file."""
5252
content = profile_content(profile, profiles_path)
53-
return cls(**content)
53+
return cls(host=content["host"], token=content["token"])
5454

5555
@staticmethod
5656
def _validate_credentials(host: str, token: str) -> None:
@@ -165,5 +165,4 @@ def _handle_fatal_exception(self, e: Exception) -> None:
165165

166166
self.logger.error(exception_message)
167167

168-
if not self.logger.subscribers:
169-
raise Exception(exception_message)
168+
raise Exception(exception_message)

0 commit comments

Comments
 (0)