Skip to content

Commit

Permalink
CRAYSAT-1649: Fixed issue that did not allow for paths containing ~
Browse files Browse the repository at this point in the history
… to be parsed correctly

(cherry picked from commit 9c64c59)
  • Loading branch information
ethanholen-hpe committed Dec 10, 2024
1 parent 924a89f commit ba15b5b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.3.2] - 2024-11-26

### Fixed
- Fixed issue that did not allow for paths containing `~` to be parsed correctly

## [2.3.1] - 2024-12-02

### Fixed
Expand Down
5 changes: 2 additions & 3 deletions csm_api_client/session.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright 2019-2023 Hewlett Packard Enterprise Development LP
# (C) Copyright 2019-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand All @@ -24,7 +24,6 @@
"""
OAuth2 authentication support.
"""

from abc import ABC, abstractmethod
import base64
from functools import cached_property
Expand Down Expand Up @@ -90,7 +89,7 @@ def __init__(self, host: str, cert_verify: bool, username: str, token_filename:
username: the username whose token to use when authenticating
"""
self.username = username
self.token_filename = token_filename
self.token_filename = os.path.expanduser(token_filename)
self.host = host
self.fetched_token = None

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "csm-api-client"
version = "2.3.1"
version = "2.3.2"
description = "Python client library for CSM APIs"
authors = [
"Ryan Haasken <[email protected]>",
Expand Down

0 comments on commit ba15b5b

Please sign in to comment.