diff --git a/CHANGELOG.md b/CHANGELOG.md index e576918..2c25ae0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/csm_api_client/session.py b/csm_api_client/session.py index 0781b2c..f75c158 100644 --- a/csm_api_client/session.py +++ b/csm_api_client/session.py @@ -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"), @@ -24,7 +24,6 @@ """ OAuth2 authentication support. """ - from abc import ABC, abstractmethod import base64 from functools import cached_property @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 88c3178..738ddfe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ",