diff --git a/CHANGELOG.md b/CHANGELOG.md index 59f4b9fa116456284adaea1f3fc80f239bbf46a0..f984c02052400c462a87dac83bd833e9e79eaa92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ 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). +## [1.0.1] - 2023-08-29 + +### Fixed + +- Error handling when there are insufficient licences to assign + ## [1.0.0] - 2023-06-22 ### Changed diff --git a/gsuitesync/sync/update.py b/gsuitesync/sync/update.py index 57b0703e771e99cddab831b0526cd08f8645369c..7e84b32ee7e8ba9b7cbd5f00c33d9a6864b58aac 100644 --- a/gsuitesync/sync/update.py +++ b/gsuitesync/sync/update.py @@ -179,7 +179,7 @@ class GAPIUpdater(ConfigurationStateConsumer): if skuId is None: LOG.warning( "No more available licences to allocate missing licenses for %d user(s)", - len(self.state.licences_to_add - index), + len(self.state.licences_to_add) - index, ) return LOG.info('Adding licence to user: "%s" (%s)', uid, skuId) diff --git a/setup.py b/setup.py index 4ef1d12f659f69ca0447f92f79d5d08375d72fd3..8b94bcbfc92aaadbe66045bcdc849413b1ee64df 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ def load_requirements(): setup( name="gsuitesync", - version="1.0.0", + version="1.0.1", packages=find_packages(), install_requires=load_requirements(), entry_points={