Skip to content

Commit 21815f0

Browse files
committed
deploy: fix override path
1 parent 6ecc017 commit 21815f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/warnet/deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def deploy_namespaces(directory: Path):
273273
for namespace in namespaces_file["namespaces"]:
274274
click.echo(f"Deploying namespace: {namespace.get('name')}")
275275
try:
276-
temp_override_file_path = Path()
276+
temp_override_file_path = ""
277277
namespace_name = namespace.get("name")
278278
namespace_config_override = {k: v for k, v in namespace.items() if k != "name"}
279279

@@ -294,7 +294,7 @@ def deploy_namespaces(directory: Path):
294294
click.echo(f"Error: {e}")
295295
return
296296
finally:
297-
if temp_override_file_path.exists():
297+
if temp_override_file_path:
298298
temp_override_file_path.unlink()
299299

300300

0 commit comments

Comments
 (0)