Skip to content

Commit 59bdab0

Browse files
committed
fixed stacks decrypt AttributeError in 2.0.13
1 parent e852217 commit 59bdab0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "stacks"
3-
version = "2.0.13"
3+
version = "2.0.14"
44
description = "Stacks, the Terraform code pre-processor"
55
readme = "README.md"
66
requires-python = ">=3.10"

src/stacks/helpers/crypto.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def decrypt(data, private_key_path=os.getenv("STACKS_PRIVATE_KEY_PATH"), must_de
8989
9090
Keyword arguments:
9191
data[any]: any data structure
92-
private_key_path[pathlib.Path]: path to private key
92+
private_key_path[str]: path to private key
9393
must_decrypt[bool]: whether decryption should succeed (if False and fails, returns encrypted value)
9494
"""
9595
if isinstance(data, str) and data.startswith("ENC[") and data.endswith("]"):

src/stacks/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def decrypt(private_key_path, string):
8282
Decrypt an encrypted string using a private key.
8383
Can run in any directory.
8484
"""
85-
print(helpers.decrypt(private_key_path=pathlib.Path(private_key_path), data=string))
85+
print(helpers.decrypt(private_key_path=private_key_path, data=string))
8686

8787

8888
@cli.group()

0 commit comments

Comments
 (0)