diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2bb99b6..b7642d1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: python-version: ${{ matrix.python-version }} - id: fmt_and_lint run: | - pip install black==19.3b0 pylama + pip install black==22.6.0 pylama black --check --diff . pylama packet test setup.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 96fa8fe..90553f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html ### Changed ### Fixed +## [1.44.3] - 2022-07-27 +### Fixed +- Fix handling non-dict error data in ResponseError #128 #129 + ## [1.44.2] - 2021-11-18 ### Fixed - Fix logic behind `validate_metro_capacity` #125 diff --git a/packet/Volume.py b/packet/Volume.py index d88a575..65f5774 100644 --- a/packet/Volume.py +++ b/packet/Volume.py @@ -142,17 +142,17 @@ def delete(self): def update_snapshot_policy(self, frequency, count): """Updates the volume snapshot policy. - :param frequency: (required) Snapshot frequency - - Validation of `frequency` is left to the packet api to avoid going out - of date if any new value is introduced. - The currently known values are: - - 1hour, - - 1day - - 1week - - 1month - - 1year - """ + :param frequency: (required) Snapshot frequency + + Validation of `frequency` is left to the packet api to avoid going out + of date if any new value is introduced. + The currently known values are: + - 1hour, + - 1day + - 1week + - 1month + - 1year + """ data = self.policy.manager.call_api( "storage/snapshot-policies/{0}?snapshot_frequency={1}&snapshot_count={2}".format( self.id, frequency, count diff --git a/packet/__init__.py b/packet/__init__.py index 9f6fe21..1e9f72c 100644 --- a/packet/__init__.py +++ b/packet/__init__.py @@ -3,7 +3,7 @@ """library to interact with the Equinix Metal API""" -__version__ = "1.44.2" +__version__ = "1.44.3" __author__ = "Equinix Metal Engineers" __author_email__ = "support@equinixmetal.com" __license__ = "LGPL v3" diff --git a/packet/baseapi.py b/packet/baseapi.py index 46599e0..67ddd50 100644 --- a/packet/baseapi.py +++ b/packet/baseapi.py @@ -48,7 +48,7 @@ class JSONReadError(Error): class BaseAPI(object): """ - Basic api class for + Basic api class for """ def __init__(self, auth_token, consumer_token, user_agent=""):