Skip to content

Commit 6665ba2

Browse files
set default value for namespace
1 parent aa55441 commit 6665ba2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/api/kubesnap.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ def health_check():
5555
})
5656

5757
@kubesnap.get("/api/kubesnap/{namespace}")
58-
async def create_snapshot_api(dep=Depends(api_key_auth),
59-
namespace) -> Dict[str, Any]:
58+
async def create_snapshot_api(namespace="default",dep=Depends(api_key_auth)) -> Dict[str, Any]:
6059
try:
6160
time_string = str(time.time())
6261
logger.info(f"Triggering Snapshot creation on request at {time_string}")

0 commit comments

Comments
 (0)