Skip to content

Commit

Permalink
Fixed files to work with latest CI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jschoewe committed Feb 21, 2025
1 parent cc2cd52 commit c2af18c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions actions/lib/vcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pack.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ref: vcd
name: vcd
description: Vcloud Director integrations
version: 1.0.1
version: 1.0.2
author: Paul Mulvihill
email: [email protected]
keywords:
Expand Down

0 comments on commit c2af18c

Please sign in to comment.