diff --git a/CHANGES.md b/CHANGES.md index 496c809..1cd4baa 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Change Log +## 1.0.2 + +* Fixed CI errors. Mapping should be imported from collections.abc as of python 3.10 + ## 1.0.0 * Drop Python 2.7 support diff --git a/actions/lib/vcd.py b/actions/lib/vcd.py index 38bc7a2..3c696cf 100644 --- a/actions/lib/vcd.py +++ b/actions/lib/vcd.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import collections +from collections.abc import Mapping import re from xml.etree.ElementTree import SubElement, tostring import requests @@ -666,8 +666,8 @@ def get_roleid(self, role): def merge_dict(self, d1, d2): for k, v2 in d2.items(): v1 = d1.get(k) - if (isinstance(v1, collections.Mapping) and # noqa: W504 - isinstance(v2, collections.Mapping)): + if (isinstance(v1, Mapping) and # noqa: W504 + isinstance(v2, Mapping)): self.merge_dict(v1, v2) else: d1[k] = v2 diff --git a/pack.yaml b/pack.yaml index 2eecb39..29942ef 100644 --- a/pack.yaml +++ b/pack.yaml @@ -1,7 +1,7 @@ ref: vcd name: vcd description: Vcloud Director integrations -version: 1.0.1 +version: 1.0.2 author: Paul Mulvihill email: paul.mulvihill@pulsant.com keywords: