Skip to content

Commit

Permalink
avoid root in fallback - it wouldn't work anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Oct 2, 2024
1 parent a7db47a commit c10ff74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ prepare_credentials data_link_location:Enso_File details:Postgres -> JS_Object |
secret_password = case credentials.password of
secret : Enso_Secret -> secret
plain_text_password : Text ->
secret_location = data_link_location.parent.if_nothing Enso_File.root
secret_location = data_link_location.parent.if_nothing (Error.throw (Illegal_State.Error "Trying to create a secret to store the Data Link password, but the provided data link location: "+data_link_location.to_text+" does not have a parent directory. This should not happen."))
location_name = if data_link_location.name.ends_with data_link_extension then data_link_location.name.drop (..Last data_link_extension.length) else data_link_location.name

create_fresh_secret ix =
Expand Down

0 comments on commit c10ff74

Please sign in to comment.